CollectionViewSource.ItemsPath 属性

定义

获取或设置要从顶级项跟踪的属性路径,以查找 CollectionViewSource 中的组。

public:
 property PropertyPath ^ ItemsPath { PropertyPath ^ get(); void set(PropertyPath ^ value); };
PropertyPath ItemsPath();

void ItemsPath(PropertyPath value);
public PropertyPath ItemsPath { get; set; }
var propertyPath = collectionViewSource.itemsPath;
collectionViewSource.itemsPath = propertyPath;
Public Property ItemsPath As PropertyPath
<CollectionViewSource ItemsPath="propertyPathString" .../>

属性值

要从顶级项中跟踪以查找组的属性路径。 默认值是从空字符串创建的 PropertyPath 。 此路径意味着 对象本身是 集合。

适用于

另请参阅