ItemsControl.OnItemTemplateChanged(DataTemplate, DataTemplate) Method

Definition

Invoked when the value of the ItemTemplate property changes.

void OnItemTemplateChanged(DataTemplate const& oldItemTemplate, DataTemplate const& newItemTemplate);
protected virtual void OnItemTemplateChanged(DataTemplate oldItemTemplate, DataTemplate newItemTemplate);
function onItemTemplateChanged(oldItemTemplate, newItemTemplate)
Protected Overridable Sub OnItemTemplateChanged (oldItemTemplate As DataTemplate, newItemTemplate As DataTemplate)

Parameters

oldItemTemplate
DataTemplate

The previous value of the ItemTemplate property.

newItemTemplate
DataTemplate

The current value of the ItemTemplate property.

Applies to