共用方式為


ItemsControl.OnItemContainerStyleChanged(Style, Style) 方法

定義

ItemContainerStyle 屬性變更時叫用。

protected:
 virtual void OnItemContainerStyleChanged(System::Windows::Style ^ oldItemContainerStyle, System::Windows::Style ^ newItemContainerStyle);
protected virtual void OnItemContainerStyleChanged (System.Windows.Style oldItemContainerStyle, System.Windows.Style newItemContainerStyle);
abstract member OnItemContainerStyleChanged : System.Windows.Style * System.Windows.Style -> unit
override this.OnItemContainerStyleChanged : System.Windows.Style * System.Windows.Style -> unit
Protected Overridable Sub OnItemContainerStyleChanged (oldItemContainerStyle As Style, newItemContainerStyle As Style)

參數

oldItemContainerStyle
Style

ItemContainerStyle 屬性的舊值。

newItemContainerStyle
Style

ItemContainerStyle 屬性的新值。

適用於