ContentControl.OnContentTemplateChanged(DataTemplate, DataTemplate) ContentControl.OnContentTemplateChanged(DataTemplate, DataTemplate) ContentControl.OnContentTemplateChanged(DataTemplate, DataTemplate) ContentControl.OnContentTemplateChanged(DataTemplate, DataTemplate) Method

Definition

Invoked when the value of the ContentTemplate property changes.

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

Parameters

oldContentTemplate
DataTemplate DataTemplate

The old value of the ContentTemplate property.

newContentTemplate
DataTemplate 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.