Share via


UIElement.OnRender Method

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

public virtual void OnRender (
         DrawingContextdc
)

Parameters

  • dc
    A DrawingContext object that supplies the drawing instructions for a UIElement object. This context is provided to the layout system.

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.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

UIElement Class
UIElement Members
Microsoft.SPOT.Presentation Namespace