private void UnprocessedInput_PointerReleased(InkUnprocessedInput sender, Windows.UI.Core.PointerEventArgs args) { selectionPolylinePoints.Add(args.CurrentPoint.RawPosition); selectionBoundingRect = inkManager.SelectWithPolyLine(selectionPolylinePoints); selectionPolylinePoints = null; canvasControl.Invalidate(); }