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 逻辑类。

适用于