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); }
private void ShowOrHideSelection(IInkAnalysisNode node) { if (node != null) { var rect = _strokeService.SelectStrokesByNode(node); _selectionRectangleService.UpdateSelectionRect(rect); } else { ClearSelection(); } }