共用方式為


ICollectionViewFactory Interface

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

Defines a method that enables a collection to provide a custom view for specialized sorting, filtering, grouping, and currency.

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

Syntax

'Declaration
Public Interface ICollectionViewFactory
public interface ICollectionViewFactory

The ICollectionViewFactory type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone CreateView Returns a custom view for specialized sorting, filtering, grouping, and currency.

Top

Remarks

The CreateView 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.

See Also

Reference