InkCanvas.Strokes Property


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

Gets or sets the collection of ink Stroke objects collected by the InkCanvas.

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

member Strokes : StrokeCollection with get, set

Property Value

Type: System.Windows.Ink.StrokeCollection

The collection of Stroke objects contained within the InkCanvas.

Identifier field


Metadata properties set to true


The following example demonstrates how to use two StrokeCollection objects for the same InkCanvas. In this example, player one and player two each use an individual "inking surface" even though they share the same InkCanvas. This example assumes the click event is connected to the event handler, switchPlayersButton_Click.

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

The following example demonstrates how to bind the Strokes property of an InkCanvas to another InkCanvas.

.NET Framework
Available since 3.0
Return to top