Skip to main content
.NET Framework Class Library
ContentControlOnContentTemplateSelectorChanged Method

Called when the ContentTemplateSelector property changes.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
Syntax
Protected Overridable Sub OnContentTemplateSelectorChanged ( _
	oldContentTemplateSelector As [%$TOPIC/ms601786_en-us_VS_110_2_0_0_0_0%], _
	newContentTemplateSelector As [%$TOPIC/ms601786_en-us_VS_110_2_0_0_0_1%] _
)
protected virtual void OnContentTemplateSelectorChanged(
	[%$TOPIC/ms601786_en-us_VS_110_2_0_1_0_0%] oldContentTemplateSelector,
	[%$TOPIC/ms601786_en-us_VS_110_2_0_1_0_1%] newContentTemplateSelector
)
protected:
virtual void OnContentTemplateSelectorChanged(
	[%$TOPIC/ms601786_en-us_VS_110_2_0_2_0_0%]^ oldContentTemplateSelector, 
	[%$TOPIC/ms601786_en-us_VS_110_2_0_2_0_1%]^ newContentTemplateSelector
)
abstract OnContentTemplateSelectorChanged : 
        oldContentTemplateSelector:[%$TOPIC/ms601786_en-us_VS_110_2_0_3_0_0%] * 
        newContentTemplateSelector:[%$TOPIC/ms601786_en-us_VS_110_2_0_3_0_1%] -> unit  
override OnContentTemplateSelectorChanged : 
        oldContentTemplateSelector:[%$TOPIC/ms601786_en-us_VS_110_2_0_3_0_2%] * 
        newContentTemplateSelector:[%$TOPIC/ms601786_en-us_VS_110_2_0_3_0_3%] -> unit
protected function OnContentTemplateSelectorChanged(
	oldContentTemplateSelector : [%$TOPIC/ms601786_en-us_VS_110_2_0_4_0_0%], 
	newContentTemplateSelector : [%$TOPIC/ms601786_en-us_VS_110_2_0_4_0_1%]
)

Parameters

oldContentTemplateSelector
Type: System.Windows.ControlsDataTemplateSelector

The old value of the ContentTemplateSelector property.

newContentTemplateSelector
Type: System.Windows.ControlsDataTemplateSelector

The new value of the ContentTemplateSelector property.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1