共用方式為


Page.OnTemplateChanged(ControlTemplate, ControlTemplate) 方法

定義

Page 的樣板變更時呼叫。

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

舊的範本。

newTemplate
ControlTemplate

新的範本。

備註

請參閱 Control.OnTemplateChanged

適用於

另請參閱