編輯

共用方式為


RibbonContentPresenter.OnTemplateChanged(DataTemplate, DataTemplate) Method

Definition

Invoked when the data template changes.

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

Parameters

oldTemplate
DataTemplate

The old data template.

newTemplate
DataTemplate

The new data template.

Applies to