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 属性的当前值。

适用于