Page.OnTemplateChanged(ControlTemplate, ControlTemplate) 方法

定义

Page 的模板更改时调用。Called when the template for a Page changes.

protected:
 virtual void OnTemplateChanged(System::Windows::Controls::ControlTemplate ^ oldTemplate, System::Windows::Controls::ControlTemplate ^ newTemplate);
protected virtual void OnTemplateChanged (System.Windows.Controls.ControlTemplate oldTemplate, System.Windows.Controls.ControlTemplate newTemplate);
abstract member OnTemplateChanged : System.Windows.Controls.ControlTemplate * System.Windows.Controls.ControlTemplate -> unit
override this.OnTemplateChanged : System.Windows.Controls.ControlTemplate * System.Windows.Controls.ControlTemplate -> unit
Protected Overridable Sub OnTemplateChanged (oldTemplate As ControlTemplate, newTemplate As ControlTemplate)

参数

oldTemplate
ControlTemplate

旧模板。The old template.

newTemplate
ControlTemplate

新模板。The new template.

注解

请参阅 Control.OnTemplateChangedSee Control.OnTemplateChanged.

适用于

另请参阅