CollectionViewSource::CollectionViewType Property

 

Gets or sets the desired view type.

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

public:
property Type^ CollectionViewType {
	Type^ get();
	void set(Type^ value);
}

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

CollectionViewTypeProperty

Metadata properties set to true

None

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

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
Show: