Share via


OnRender Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Participates in rendering operations that are directed by the layout system when implemented in a derived class.

Namespace:  Microsoft.SPOT.Presentation
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public Overridable Sub OnRender ( _
    dc As DrawingContext _
)
public virtual void OnRender(
    DrawingContext dc
)
public:
virtual void OnRender(
    DrawingContext^ dc
)
abstract OnRender : 
        dc:DrawingContext -> unit 
override OnRender : 
        dc:DrawingContext -> unit 
public function OnRender(
    dc : DrawingContext
)

Parameters

Remarks

The rendering instructions for a specific element are not used directly when this method is invoked; instead, those instructions are preserved for later asynchronous use by layout and drawing.

This method has no default implementation in the UIElement class.

Note

Note to implementers: You can override the OnRender method to add further graphical elements (not previously defined in a logical tree) to a rendered element. Also note that a DrawingContext object is passed as an argument, which provides methods for drawing shapes, text, images, or videos.

.NET Framework Security

See Also

Reference

UIElement Class

Microsoft.SPOT.Presentation Namespace