Ejemplo n.º 1
0
        private void UnprocessedInput_PointerReleased(InkUnprocessedInput sender, PointerEventArgs args)
        {
            lasso.Points.Add(args.CurrentPoint.RawPosition);

            var rect = _strokeService.SelectStrokesByPoints(lasso.Points);

            enableLasso = false;

            _selectionCanvas.Children.Remove(lasso);
            _selectionRectangleService.UpdateSelectionRect(rect);
        }
Ejemplo n.º 2
0
 private void ShowOrHideSelection(IInkAnalysisNode node)
 {
     if (node != null)
     {
         var rect = _strokeService.SelectStrokesByNode(node);
         _selectionRectangleService.UpdateSelectionRect(rect);
     }
     else
     {
         ClearSelection();
     }
 }