InkPresenter::AttachVisuals Method (Visual^, DrawingAttributes^)
.NET Framework (current version)
Attaches the visual of a DynamicRenderer to an InkPresenter.
Assembly: PresentationFramework (in PresentationFramework.dll)
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.
.NET Framework
Available since 3.0
Available since 3.0
Show: