StrokeCollection.Draw Method (DrawingContext)


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

Draws the strokes in the StrokeCollection.

Namespace:   System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

member Draw : 
        context:DrawingContext -> unit


Type: System.Windows.Media.DrawingContext

The DrawingContext on which to draw the StrokeCollection.

The following example creates a custom element that displays a thumbnail view of an InkCanvas. The custom element keeps a reference to an InkCanvas and redraws itself when the StrokeCollected event occurs.

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

.NET Framework
Available since 3.0
Return to top