Dela via


CollectionViewSource.Source Property

Definition

Gets or sets the collection object from which to create this view.

public:
 property Platform::Object ^ Source { Platform::Object ^ get(); void set(Platform::Object ^ value); };
IInspectable Source();

void Source(IInspectable value);
public object Source { get; set; }
var object = collectionViewSource.source;
collectionViewSource.source = object;
Public Property Source As Object
<CollectionViewSource Source="bindingReference" .../>

Property Value

Object

Platform::Object

IInspectable

The collection to create the view from.

Remarks

When you set this property, a view is generated automatically unless the source collection implements ICollectionViewFactory. Otherwise, the view is retrieved through the CreateView method. You can retrieve the view through the View property.

Applies to

See also