InkPresenter.AttachVisuals Method (Visual, DrawingAttributes)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Attaches the visual of a DynamicRenderer to an InkPresenter.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

member AttachVisuals : 
        visual:Visual *
        drawingAttributes:DrawingAttributes -> unit

Parameters

visual
Type: System.Windows.Media.Visual

The visual of a DynamicRenderer.

drawingAttributes
Type: System.Windows.Ink.DrawingAttributes

The DrawingAttributes that specifies the appearance of the dynamically rendered ink.

Exception Condition
InvalidOperationException

visual is already attached to a visual tree.

Attach the visual of a DynamicRenderer to the InkPresenter to dynamically render ink on your control.

The following example demonstrates how to attach the visual and DrawingAttributes of a DynamicRenderer to an InkPresenter.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: