CollectionViewSource.GroupDescriptions 屬性

定義

取得或設定 GroupDescription 物件的集合,這個集合描述如何在檢視中排序集合中的項目。

public:
 property System::Collections::ObjectModel::ObservableCollection<System::ComponentModel::GroupDescription ^> ^ GroupDescriptions { System::Collections::ObjectModel::ObservableCollection<System::ComponentModel::GroupDescription ^> ^ get(); };
public System.Collections.ObjectModel.ObservableCollection<System.ComponentModel.GroupDescription> GroupDescriptions { get; }
member this.GroupDescriptions : System.Collections.ObjectModel.ObservableCollection<System.ComponentModel.GroupDescription>
Public ReadOnly Property GroupDescriptions As ObservableCollection(Of GroupDescription)

屬性值

ObservableCollection<GroupDescription>

GroupDescription 物件的 ObservableCollection<T>,描述如何在檢視中分組集合內的項目。

備註

這個屬性會轉送到從目前 Source 建立的任何集合檢視。

XAML 屬性項目用法

<object>  
  <object.GroupDescriptions>  
    oneOrMorePropertyDescriptions  
  </object.GroupDescriptions>  
</object>  

XAML 值

oneOrMorePropertyDescriptions
衍生自抽象類別的 GroupDescription 一或多個元素。 這通常是 PropertyGroupDescription

適用於