public InkStrokesService(InkPresenter inkPresenter) { _strokeContainer = inkPresenter.StrokeContainer; inkPresenter.StrokesCollected += (s, e) => StrokesCollected?.Invoke(this, e); inkPresenter.StrokesErased += (s, e) => StrokesErased?.Invoke(this, e); }
/// <summary> /// Trigger the strokes collected event handler /// </summary> /// <param name="strokes">the strokes</param> public void TriggerStrokesCollected(IEnumerable <XInkStroke> strokes) { StrokesCollected?.Invoke(this, new XInkStrokesCollectedEventArgs { Strokes = strokes.ToList() }); }