Providing a Drawing Surface with the InkPresenter Element
InkPresenter
provides a primitive drawing surface to collect strokes or Bézier curves within a Canvas
control. The InkPresenter
is derived from the Canvas
class and includes the addition of a single property called Strokes
, which is a collection of Stroke
objects. A Stroke
represents a line segment and is composed of a collection of StylusPoints
.
The behavior of the InkPresenter
can be likened to that of a pen and paper. When the pen makes contact with the paper, you begin a Stroke
. As the pen moves on the paper, the Stroke
is constructed using StylusPoints
. When the pen leaves the paper, the Stroke
is complete.
The appearance of a Stroke
can be defined by using its DrawingAttributes ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.