Поделиться через


ICollectionViewFactory.CreateView Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns a custom view for specialized sorting, filtering, grouping, and currency.

Namespace:  System.ComponentModel
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Function CreateView As ICollectionView
ICollectionView CreateView()

Return Value

Type: System.ComponentModel.ICollectionView
A custom view for specialized sorting, filtering, grouping, and currency.

Remarks

This method is called when you set the CollectionViewSource.Source or DataGrid.ItemsSource property to an ICollectionViewFactory implementation. The returned ICollectionView implementation is used to manage sorting, filtering, grouping, and currency with the bound collection.

When using the CollectionViewSource class, you can access the View property to retrieve the ICollectionView implementation.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.