Renders ink on a surface.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Ink rendering occurs in two ways: dynamic and static. Dynamic rendering occurs as ink is written to an inking surface: the stroke is rendered as it is being collected. Static rendering occurs after stroke data is collected and attached to a new stroke.
To render ink dynamically using the , attach the RootVisual property of a DynamicRenderer to the by using the AttachVisuals method. To statically render ink, add stroke objects to the Strokes property.
The following example programmatically creates a stroke and adds it to the . Only static rendering is done in this example, which assumes that the Loaded event is connected to the event handler, WindowLoaded.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003