ContentControl.OnContentTemplateChanged(DataTemplate, DataTemplate) Method

Definition

Invoked when the value of the ContentTemplate property changes.

C#
protected virtual void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate);

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

Produkt Verzie
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6