I am using the InkCanvas
and InkToolBar
in windows 10 build 14939 to capture user ink strokes.
I would like to do a custom button with Undo/Redo however I have trouble to create the following:
private static InkStroke CreateStroke(List<InkPoint> redoInkPoints) {
var strokeBuilder = new InkStrokeBuilder();
Matrix3x2 matr = new Matrix3x2();
return strokeBuilder.CreateStrokeFromInkPoints(redoInkPoints, matr);
}
However visual studio complaints about the matr variable of
'Argment type 'System.Numerics.Matrix3x2' is not assignable to parameter type 'Windows.Foundation.Numerics.Matrix3x2'
even though I don't have anywhere in my code behind referencing the windows.foundation.numerics.matrix3x2.
Anyone got any idea or example on how I use the CreateStrokeFromInkPoints
?