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 。 這個路徑表示物件本身是集合。

適用於

另請參閱