RibbonControl.OnTemplateChanged Method
Invoked when the data template changes.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Protected Overrides Sub OnTemplateChanged ( _
oldTemplate As ControlTemplate, _
newTemplate As ControlTemplate _
)
protected override void OnTemplateChanged(
ControlTemplate oldTemplate,
ControlTemplate newTemplate
)
protected:
virtual void OnTemplateChanged(
ControlTemplate^ oldTemplate,
ControlTemplate^ newTemplate
) override
abstract OnTemplateChanged :
oldTemplate:ControlTemplate *
newTemplate:ControlTemplate -> unit
override OnTemplateChanged :
oldTemplate:ControlTemplate *
newTemplate:ControlTemplate -> unit
protected override function OnTemplateChanged(
oldTemplate : ControlTemplate,
newTemplate : ControlTemplate
)
Parameters
- oldTemplate
Type: System.Windows.Controls.ControlTemplate
The old data template.
- newTemplate
Type: System.Windows.Controls.ControlTemplate
The new data template.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.