Dela via


RibbonContentPresenter.OnApplyTemplate Method

Builds the visual tree for the RibbonContentPresenter when a new template is applied.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Overrides Sub OnApplyTemplate
public override void OnApplyTemplate()
public:
virtual void OnApplyTemplate() override
abstract OnApplyTemplate : unit -> unit 
override OnApplyTemplate : unit -> unit 
public override function OnApplyTemplate()

Remarks

This method is invoked whenever application code or an internal process, such as a rebuilding layout pass, calls the ApplyTemplate method.

.NET Framework Security

See Also

Reference

RibbonContentPresenter Class

Microsoft.Windows.Controls.Ribbon Namespace