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<T>一个GroupDescription对象,描述集合中的项如何在视图中分组。

注解

此属性转发到从当前 Source创建的任何集合视图。

XAML 属性元素用法

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

XAML 值

oneOrMorePropertyDescriptions 派生自抽象类的 GroupDescription一个或多个元素。 通常,这是一个 PropertyGroupDescription

适用于