InkPresenter.AttachVisuals Method (Visual, DrawingAttributes)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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


Type: System.Windows.Media.Visual

The visual of a DynamicRenderer.

Type: System.Windows.Ink.DrawingAttributes

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

Exception Condition

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