CollectionViewSource.CollectionViewType Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the desired view type.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Type CollectionViewType { get; set; }

Property Value

Type: System.Type

The desired view type.

This can be used when you want to create a custom view on top of a collection of a specific type that is different from the default type.

This property may only be set during initialization.

Identifier field


Metadata properties set to true


<object CollectionViewType="{x:Type typeName}"/>


The name of the Type that is contained by this view. Note the use of the x:Type Markup Extension to specify a type in XAML.

.NET Framework
Available since 3.0
Return to top