共用方式為


ItemsControl.ItemContainerStyleSelector 屬性

定義

取得或設定自訂 StyleSelector 邏輯類別的參考。 StyleSelector會根據所顯示物件的特性,傳回不同的Style值,以用於專案容器。

StyleSelector ItemContainerStyleSelector();

void ItemContainerStyleSelector(StyleSelector value);
public StyleSelector ItemContainerStyleSelector { get; set; }
var styleSelector = itemsControl.itemContainerStyleSelector;
itemsControl.itemContainerStyleSelector = styleSelector;
Public Property ItemContainerStyleSelector As StyleSelector
<itemsControl ItemContainerStyleSelector="styleSelectorReference" />

屬性值

自訂 StyleSelector 邏輯類別。

適用於