The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
0 out of 1 rated this helpful - Rate this topic

InkPresenter.Strokes Property

Gets or sets the strokes that the InkPresenter displays.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
public StrokeCollection Strokes { get; set; }
<!--see Remarks; XAML usage is uncommon-->

XAML Values


One or more Stroke object elements.

Property Value

Type: System.Windows.Ink.StrokeCollection
The collection of ink strokes that are displayed by the InkPresenter.

Dependency property identifier field: StrokesProperty

In practical terms, you would generally never replace the complete Strokes collection (by using the "set" aspect of this property). However, when the collection of strokes is populated by user input, you might add, remove, or query stroke items from the existing collection. Typically you do this by handling user input events on a stylus device or mouse, creating new Stroke objects based on starting and ending positions during user actions, and adding these strokes to the collection.

In order to render, each Stroke in the collection held by Strokes must also have values established for the DrawingAttributes property.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.