private void AddNewShape() { if (PickerShape != null) { var newShape = PickerShape.Clone(ShapePoint1); DragShapes[0] = newShape; SymbolShapes.Add(newShape); SetProperty(newShape, ProertyId.All); EditorCanvas.Invalidate(); } }
private void PasteButton_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e) { if (CutCopyShapes.Count > 0) { SelectedShapes.Clear(); foreach (var template in CutCopyShapes) { var shape = template.Clone(); SymbolShapes.Add(shape); SelectedShapes.Add(shape); } SetShapesAreSelected(); EditorCanvas.Invalidate(); } }
private void CutButton_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e) { if (SelectedShapes.Count > 0) { CutCopyShapes.Clear(); foreach (var shape in SelectedShapes) { CutCopyShapes.Add(shape); SymbolShapes.Remove(shape); } SelectedShapes.Clear(); EditorCanvas.Invalidate(); } }
private void EndTargetDrag() { if (IsKillZone()) { RestorePointerCursor(); if (!_polylineTarget.TryDeletePoint(_linePointIndex)) { SymbolShapes.Remove(_polylineTarget); _targetPoints.Clear(); SetIdleOnVoid(); } } ClearEventAction(PointerEvent.Drag); EditorCanvas.Invalidate(); }