I'm developing an universal windows platform App and want to modify the attribute of Ink Strokes that exist in Ink Canvas, All i know is i can access as below:
IReadOnlyList<InkStroke> = inkCanvas.InkPresenter.StrokeContainer.GetStrokes();
Any example of editing size or color of these things and redrawing them ?
Another question is how can i have an event on drawing that strokes? for example how can i draw an exact same stroke on another location on same Ink Canvas in real time?
You can redraw your Ink Strokes that exist in Ink Canvas by setting new
InkDrawingAttributes
forInkStroke.DrawingAttributes
.The event of
InkPresenter.StrokesCollected
occurs when one or more ink strokes are processed (wet to dry) by the application thread, and then copy exist InkStrokes to new point of Ink Canvas. You can draw an exact same stroke on another location on same Ink Canvas in real time by using following code.