private void OnStrokesSpecified(object sender, SignaturePadCanvasView.StrokesEventArgs e) { var ctrl = Control; if (ctrl != null) { ctrl.LoadStrokes(e.Strokes.Select(s => s.Select(p => new NativePoint((float)p.X, (float)p.Y)).ToArray()).ToArray()); } }
private void OnStrokesRequested(object sender, SignaturePadCanvasView.StrokesEventArgs e) { var ctrl = Control; if (ctrl != null) { e.Strokes = ctrl.Strokes.Select(s => s.Select(p => new Point(p.X, p.Y))); } }