共用方式為


TreeView.ItemContainerStyleSelector 屬性

定義

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

StyleSelector ItemContainerStyleSelector();

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

屬性值

自訂 StyleSelector 邏輯類別。

適用於