Rendering Handwriting

If you’re adding special support for pen in your app, then you likely want to render the strokes that the user is writing or drawing with the pen. You can do this with the help of a Windows Runtime class called InkManager. InkManager keeps track of strokes, manages the ability to erase and select them, enables the data to be saved to and loaded from a stream, and even exposes handwriting recognition capabilities! All you need to do is feed an InkManager the appropriate raw pointer data received by the PointerPressed, PointerMoved, and PointerReleased family of events. Note that InkManager itself does not provide any rendering capabilities. Therefore, the role InkManager plays is very similar to the role of GestureRecognizer ...

Get Universal Windows® Apps with XAML and C# 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.