ContentPresenter.OnContentTemplateChanged(DataTemplate, DataTemplate) 方法

定义

ContentTemplate 更改时调用。

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 属性的旧值。

newContentTemplate
DataTemplate

ContentTemplate 属性的新值。

适用于