ContentPresenter.OnTemplateChanged(DataTemplate, DataTemplate) Methode

Definition

Wird aufgerufen, wenn das ContentTemplate geändert wird.

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

Parameter

oldTemplate
DataTemplate

Der Wert des alten DataTemplate-Objekts.

newTemplate
DataTemplate

Der Wert des neuen DataTemplate-Objekts.

Gilt für: