Dela via


ContentPresenter.OnContentTemplateChanged(DataTemplate, DataTemplate) Method

Definition

Invoked when the value of the ContentTemplate property changes.

void OnContentTemplateChanged(DataTemplate const& oldContentTemplate, DataTemplate const& newContentTemplate);
protected virtual void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate);
function onContentTemplateChanged(oldContentTemplate, newContentTemplate)
Protected Overridable Sub OnContentTemplateChanged (oldContentTemplate As DataTemplate, newContentTemplate As DataTemplate)

Parameters

oldContentTemplate
DataTemplate

The old value of the ContentTemplate property.

newContentTemplate
DataTemplate

The new value of the ContentTemplate property.

Applies to