InkCanvas::Strokes Property


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

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

property StrokeCollection^ Strokes {
	StrokeCollection^ get();
	void set(StrokeCollection^ value);

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