コード例 #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);
        }
コード例 #2
0
 /// <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()
     });
 }