CollectionViewSource.CollectionViewType 屬性

定義

取得或設定所需的檢視型別。

public:
 property Type ^ CollectionViewType { Type ^ get(); void set(Type ^ value); };
public Type CollectionViewType { get; set; }
member this.CollectionViewType : Type with get, set
Public Property CollectionViewType As Type

屬性值

Type

所需的檢視型別。

備註

當您想要在與預設類型不同的特定型別集合上建立自訂檢視時,可以使用這個選項。

這個屬性只能在初始化期間設定。

相依性屬性資訊

識別碼欄位 CollectionViewTypeProperty
中繼資料屬性設定為 true

XAML Attribute Usage

<object CollectionViewType="{x:Type typeName}"/>  

XAML 值

typeName
這個檢視所包含的 名稱 Type 。 請注意,使用 x:Type 標記延伸 在 XAML 中指定類型。

適用於