Dela via


CollectionViewSource.View Property

Definition

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

public:
 property ICollectionView ^ View { ICollectionView ^ get(); };
ICollectionView View();
public ICollectionView View { get; }
var iCollectionView = collectionViewSource.view;
Public ReadOnly Property View As ICollectionView

Property Value

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.

Applies to

See also