Compartilhar via


ContentPresenter.OnTemplateChanged(DataTemplate, DataTemplate) Método

Definição

Invocado quando o ContentTemplate é alterado.

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)

Parâmetros

oldTemplate
DataTemplate

O valor do objeto DataTemplate antigo.

newTemplate
DataTemplate

O novo valor do objeto DataTemplate.

Aplica-se a