ItemsControl.OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector) 方法

定義

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

protected:
 virtual void OnItemTemplateSelectorChanged(System::Windows::Controls::DataTemplateSelector ^ oldItemTemplateSelector, System::Windows::Controls::DataTemplateSelector ^ newItemTemplateSelector);
protected virtual void OnItemTemplateSelectorChanged (System.Windows.Controls.DataTemplateSelector oldItemTemplateSelector, System.Windows.Controls.DataTemplateSelector newItemTemplateSelector);
abstract member OnItemTemplateSelectorChanged : System.Windows.Controls.DataTemplateSelector * System.Windows.Controls.DataTemplateSelector -> unit
override this.OnItemTemplateSelectorChanged : System.Windows.Controls.DataTemplateSelector * System.Windows.Controls.DataTemplateSelector -> unit
Protected Overridable Sub OnItemTemplateSelectorChanged (oldItemTemplateSelector As DataTemplateSelector, newItemTemplateSelector As DataTemplateSelector)

參數

oldItemTemplateSelector
DataTemplateSelector

ItemTemplateSelector 屬性的舊值。Old value of the ItemTemplateSelector property.

newItemTemplateSelector
DataTemplateSelector

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

適用於