Exemplo n.º 1
0
        public InkStrokesService(InkPresenter inkPresenter)
        {
            _strokeContainer = inkPresenter.StrokeContainer;

            inkPresenter.StrokesCollected += (s, e) => StrokesCollected?.Invoke(this, e);
            inkPresenter.StrokesErased    += (s, e) => StrokesErased?.Invoke(this, e);
        }
Exemplo n.º 2
0
 /// <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));
 }