UIElement::OnRender Method (DrawingContext^)
When overridden in a derived class, 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.
Assembly: PresentationCore (in PresentationCore.dll)
Notes to Inheritors:
The DrawingContext object is passed as an argument, which provides methods for drawing shapes, text, images or videos.method can be overridden to add further graphical elements (not previously defined in a logical tree) to a rendered element, such as effects or adorners. A
Available since 3.0