TextBoxBase.OnTemplateChanged(ControlTemplate, ControlTemplate) TextBoxBase.OnTemplateChanged(ControlTemplate, ControlTemplate) TextBoxBase.OnTemplateChanged(ControlTemplate, ControlTemplate) TextBoxBase.OnTemplateChanged(ControlTemplate, ControlTemplate) Method

定义

在控件模板更改时进行调用。Is called when the control template changes.

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 ControlTemplate ControlTemplate ControlTemplate

一个 ControlTemplate 对象,指定当前处于活动状态的控件模板。A ControlTemplate object that specifies the control template that is currently active.

newTemplate
ControlTemplate ControlTemplate ControlTemplate ControlTemplate

一个 ControlTemplate 对象,指定要使用的新控件模板。A ControlTemplate object that specifies a new control template to use.

注解

重写 OnTemplateChangedOverrides OnTemplateChanged.

适用于