ContentPresenter.OnTemplateChanged(DataTemplate, DataTemplate) 方法

定义

ContentTemplate 更改时调用。

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)

参数

oldTemplate
DataTemplate

DataTemplate 对象值。

newTemplate
DataTemplate

DataTemplate 对象值。

适用于