InkPresenter.Strokes Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the strokes that the InkPresenter displays.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<!--see Remarks; XAML usage is uncommon--> <InkPresenter> <InkPresenter.Strokes> oneOrMoreStrokes </InkPresenter.Strokes> </InkPresenter>
XAML Values
Property Value
Type: System.Windows.Ink.StrokeCollectionThe 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, 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.