Freigeben über


ContentControl.OnContentTemplateChanged(DataTemplate, DataTemplate) Methode

Definition

Wird aufgerufen, wenn sich die ContentTemplate-Eigenschaft ändert.

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)

Parameter

oldContentTemplate
DataTemplate

Der alte Wert der ContentTemplate-Eigenschaft.

newContentTemplate
DataTemplate

Der neue Wert der ContentTemplate -Eigenschaft.

Gilt für