共用方式為


ItemsControl.OnItemTemplateSelectorChanged 方法

定義

ItemTemplateSelector 屬性的值變更時叫用。

void OnItemTemplateSelectorChanged(DataTemplateSelector const& oldItemTemplateSelector, DataTemplateSelector const& newItemTemplateSelector);
protected virtual void OnItemTemplateSelectorChanged(DataTemplateSelector oldItemTemplateSelector, DataTemplateSelector newItemTemplateSelector);
function onItemTemplateSelectorChanged(oldItemTemplateSelector, newItemTemplateSelector)
Protected Overridable Sub OnItemTemplateSelectorChanged (oldItemTemplateSelector As DataTemplateSelector, newItemTemplateSelector As DataTemplateSelector)

參數

oldItemTemplateSelector
DataTemplateSelector

ItemTemplateSelector屬性的先前值。

newItemTemplateSelector
DataTemplateSelector

ItemTemplateSelector屬性的目前值。

適用於