OnApplyTemplate Method

RibbonMenuItem.OnApplyTemplate Method ()

.NET Framework 4.6 and 4.5

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

Namespace:   System.Windows.Controls.Ribbon
Assembly:  System.Windows.Controls.Ribbon (in System.Windows.Controls.Ribbon.dll)

public override void OnApplyTemplate()

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

.NET Framework
Available since 4.5
Return to top
© 2015 Microsoft