共用方式為


ItemsControl.OnItemContainerStyleSelectorChanged 方法

定義

ItemContainerStyleSelector 屬性的值變更時叫用。

void OnItemContainerStyleSelectorChanged(StyleSelector const& oldItemContainerStyleSelector, StyleSelector const& newItemContainerStyleSelector);
protected virtual void OnItemContainerStyleSelectorChanged(StyleSelector oldItemContainerStyleSelector, StyleSelector newItemContainerStyleSelector);
function onItemContainerStyleSelectorChanged(oldItemContainerStyleSelector, newItemContainerStyleSelector)
Protected Overridable Sub OnItemContainerStyleSelectorChanged (oldItemContainerStyleSelector As StyleSelector, newItemContainerStyleSelector As StyleSelector)

參數

oldItemContainerStyleSelector
StyleSelector

ItemContainerStyleSelector屬性的先前值。

newItemContainerStyleSelector
StyleSelector

ItemContainerStyleSelector屬性的目前值。

適用於