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
- dc
Type: Microsoft.SPOT.Presentation.Media. . :: . .DrawingContext
An 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.