Draws ink on a surface as the user moves the tablet pen.
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: Not mapped to an xmlns.
The class inherits from the StylusPlugIn class, and allows ink to be rendered to a surface as the user moves the mouse pointer with a tablet pen or other pointing device. You can use the to dynamically render ink on a custom control, or inherit from to perform custom rendering in real time on an ink-enabled element, such as the InkCanvas.
Dynamic rendering is done on a thread separate from the application's user interface thread when the user inputs ink with a tablet pen. When a mouse is used, dynamic rendering is done on the UI thread.
// Create a DrawingAttributes to use for the // DynamicRenderer. DrawingAttributes inkDA = new DrawingAttributes(); inkDA.Width = 5; inkDA.Height = 5; inkDA.Color = Colors.Purple; // Add a dynamic renderer plugin that // draws ink as it "flows" from the stylus DynamicRenderer dynamicRenderer1 = new DynamicRenderer(); dynamicRenderer1.DrawingAttributes = inkDA; this.StylusPlugIns.Add(dynamicRenderer1); inkPresenter1.AttachVisuals(dynamicRenderer1.RootVisual, dynamicRenderer1.DrawingAttributes);
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.