RibbonTabHeader.OnRender Method
Participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Protected Overrides Sub OnRender ( _
drawingContext As DrawingContext _
)
protected override void OnRender(
DrawingContext drawingContext
)
protected:
virtual void OnRender(
DrawingContext^ drawingContext
) override
abstract OnRender :
drawingContext:DrawingContext -> unit
override OnRender :
drawingContext:DrawingContext -> unit
protected override function OnRender(
drawingContext : DrawingContext
)
Parameters
- drawingContext
Type: System.Windows.Media.DrawingContext
The drawing instructions for a specific element. This context is provided to the layout system.
Remarks
This override calls the base OnRender method, and then ensures that the Ribbon is completely rendered before the TabHeaderLeft and TabHeaderRight properties are calculated.
.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.