ItemsControl.OnItemContainerStyleSelectorChanged(StyleSelector, StyleSelector) 方法

定義

ItemContainerStyleSelector 屬性變更時叫用。Invoked when the ItemContainerStyleSelector property changes.

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 屬性的舊值。Old value of the ItemContainerStyleSelector property.

newItemContainerStyleSelector
StyleSelector

ItemContainerStyleSelector 屬性的新值。New value of the ItemContainerStyleSelector property.

適用於