Strokes Property
Collapse the table of content
Expand the table of content

InkPresenter.Strokes Property


Gets and sets the strokes that the InkPresenter displays.

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

public StrokeCollection Strokes { get; set; }

Property Value

Type: System.Windows.Ink.StrokeCollection

The strokes that the InkPresenter displays.

Identifier field


Metadata properties set to true


The following example programmatically creates a stroke and adds it to the InkPresenter. The example assumes that the Loaded event is connected to the event handler, WindowLoaded.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft