CollectionViewSource.Source CollectionViewSource.Source CollectionViewSource.Source CollectionViewSource.Source Property

定义

获取或设置要从中创建该视图的集合对象。Gets or sets the collection object from which to create this view.

public:
 property System::Object ^ Source { System::Object ^ get(); void set(System::Object ^ value); };
public object Source { get; set; }
member this.Source : obj with get, set
Public Property Source As Object

属性值

默认值为 nullThe default value is null.

注解

依赖项属性信息Dependency Property Information

标识符字段Identifier Field SourceProperty
元数据属性设置为trueMetadata properties set to true NoneNone

XAML 属性用法XAML Attribute Usage

<object Source="myCollection" .../>  

XAML 值XAML Values

myCollectionmyCollection
现有集合。An existing collection. 若要引用现有集合, 请使用StaticResource 标记扩展To refer to an existing collection, use the StaticResource Markup Extension.

适用于