ContentControl.OnContentTemplateChanged(DataTemplate, DataTemplate) Method

Definition

Invoked when the value of the ContentTemplate property changes.

 virtual 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.

Remarks

Classes that derive from ContentControl can override this method in order to perform any custom logic that should apply, in cases where the DataTemplate that presents the content changes.

Applies to