CollectionViewSource.SortDescriptions 属性

定义

获取或设置一个对象集合,该集合 SortDescription 描述集合中的项在视图中的排序方式。

public:
 property System::ComponentModel::SortDescriptionCollection ^ SortDescriptions { System::ComponentModel::SortDescriptionCollection ^ get(); };
public System.ComponentModel.SortDescriptionCollection SortDescriptions { get; }
member this.SortDescriptions : System.ComponentModel.SortDescriptionCollection
Public ReadOnly Property SortDescriptions As SortDescriptionCollection

属性值

描述集合中项在视图中的排序方式的对象集合 SortDescription

注解

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

XAML 属性元素用法

<object>
  <object.SortDescriptions>
    oneOrMoreSortDescriptions
  </object.SortDescriptions>
</object>

XAML 值

oneOrMoreSortDescriptions 一个或多个 SortDescription 元素。

适用于