共用方式為


ItemsControl.OnItemContainerStyleSelectorChanged 方法

定義

ItemContainerStyleSelector 屬性變更時叫用。

protected:
 virtual void OnItemContainerStyleSelectorChanged(System::Windows::Controls::StyleSelector ^ oldItemContainerStyleSelector, System::Windows::Controls::StyleSelector ^ newItemContainerStyleSelector);
protected virtual void OnItemContainerStyleSelectorChanged (System.Windows.Controls.StyleSelector oldItemContainerStyleSelector, System.Windows.Controls.StyleSelector newItemContainerStyleSelector);
abstract member OnItemContainerStyleSelectorChanged : System.Windows.Controls.StyleSelector * System.Windows.Controls.StyleSelector -> unit
override this.OnItemContainerStyleSelectorChanged : System.Windows.Controls.StyleSelector * System.Windows.Controls.StyleSelector -> unit
Protected Overridable Sub OnItemContainerStyleSelectorChanged (oldItemContainerStyleSelector As StyleSelector, newItemContainerStyleSelector As StyleSelector)

參數

oldItemContainerStyleSelector
StyleSelector

ItemContainerStyleSelector 屬性的舊值。

newItemContainerStyleSelector
StyleSelector

ItemContainerStyleSelector 屬性的新值。

適用於