Dela via


RibbonContentPresenter.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 DataTemplate, _
    newTemplate As DataTemplate _
)
protected override void OnTemplateChanged(
    DataTemplate oldTemplate,
    DataTemplate newTemplate
)
protected:
virtual void OnTemplateChanged(
    DataTemplate^ oldTemplate, 
    DataTemplate^ newTemplate
) override
abstract OnTemplateChanged : 
        oldTemplate:DataTemplate * 
        newTemplate:DataTemplate -> unit 
override OnTemplateChanged : 
        oldTemplate:DataTemplate * 
        newTemplate:DataTemplate -> unit 
protected override function OnTemplateChanged(
    oldTemplate : DataTemplate, 
    newTemplate : DataTemplate
)

Parameters

.NET Framework Security

See Also

Reference

RibbonContentPresenter Class

Microsoft.Windows.Controls.Ribbon Namespace