ContentControl.OnContentTemplateChanged(DataTemplate, DataTemplate) Метод

Определение

Вызывается при изменении свойства ContentTemplate.Called when the ContentTemplate property changes.

protected:
 virtual void OnContentTemplateChanged(System::Windows::DataTemplate ^ oldContentTemplate, System::Windows::DataTemplate ^ newContentTemplate);
protected virtual void OnContentTemplateChanged (System.Windows.DataTemplate oldContentTemplate, System.Windows.DataTemplate newContentTemplate);
abstract member OnContentTemplateChanged : System.Windows.DataTemplate * System.Windows.DataTemplate -> unit
override this.OnContentTemplateChanged : System.Windows.DataTemplate * System.Windows.DataTemplate -> unit
Protected Overridable Sub OnContentTemplateChanged (oldContentTemplate As DataTemplate, newContentTemplate As DataTemplate)

Параметры

oldContentTemplate
DataTemplate

Старое значение свойства ContentTemplate.The old value of the ContentTemplate property.

newContentTemplate
DataTemplate

Новое значение свойства ContentTemplate.The new value of the ContentTemplate property.

Применяется к