private void OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (!canvas1.IsMouseCaptured) { startPoint = e.GetPosition(canvas1); canvas1.CaptureMouse(); if (rbCombine.IsChecked == true) { SetCombineShapes(e); } else if (rbSelect.IsChecked == true) { if (canvas1 == e.Source) return; isDown = true; originalElement = (Path)e.Source; e.Handled = true; } else if (rbDelete.IsChecked == true) { originalElement = (Path)e.Source; DeleteShape(originalElement); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)