次の方法で共有


CollectionViewSource.View Property

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

Gets the view object that is currently associated with this instance of CollectionViewSource.

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

Syntax

'Declaration
Public ReadOnly Property View As ICollectionView
public ICollectionView View { get; }

Property Value

Type: System.ComponentModel.ICollectionView
The view object that is currently associated with this instance of CollectionViewSource.

Remarks

This property is initialized when you set the Source property. At that time, a view is generated automatically unless the source collection implements ICollectionViewFactory. Otherwise, the view is retrieved through the CreateView method.

Version Notes

Silverlight 3 does not support the ICollectionViewFactory interface.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

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