ContentControl.OnContentTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector) ContentControl.OnContentTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector) ContentControl.OnContentTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector) ContentControl.OnContentTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector) Method

Definition

Invoked when the value of the ContentTemplateSelector property changes.

protected : virtual void OnContentTemplateSelectorChanged(DataTemplateSelector oldContentTemplateSelector, DataTemplateSelector newContentTemplateSelector)
virtual void OnContentTemplateSelectorChanged(DataTemplateSelector oldContentTemplateSelector, DataTemplateSelector newContentTemplateSelector) const;
protected virtual void OnContentTemplateSelectorChanged(DataTemplateSelector oldContentTemplateSelector, DataTemplateSelector newContentTemplateSelector)
Protected Overridable Sub OnContentTemplateSelectorChanged(oldContentTemplateSelector As DataTemplateSelector, newContentTemplateSelector As DataTemplateSelector)

Parameters

oldContentTemplateSelector
DataTemplateSelector DataTemplateSelector

The old value of the ContentTemplateSelector property.

newContentTemplateSelector
DataTemplateSelector DataTemplateSelector

The new value of the ContentTemplateSelector 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 selector logic that automatically chooses the DataTemplate based on context changes.