共用方式為


RibbonTextBox.OnTemplateChanged(ControlTemplate, ControlTemplate) 方法

定義

控制項範本變更時叫用。

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

參數

oldTemplate
ControlTemplate

舊的範本。

newTemplate
ControlTemplate

新的範本。

適用於