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 erased event /// </summary> /// <param name="list">the list of strokes</param> public void TriggerStrokesErased(IReadOnlyList <XInkStroke> list) { StrokesErased?.Invoke(this, new XInkStrokesErasedEventArgs(list)); }