public void DeleteSelected() { SelectedLayoutElement.RestartSelectionState(); elements.Remove(SelectedLayoutElement); _canvas.Children.Remove(Selected); _selected = null; }
private void _canvas_MouseLeave(object sender, MouseEventArgs e) { if (SelectedLayoutElement != null) { SelectedLayoutElement.RestartSelectionState(); } }
private void _canvas_MouseUp(object sender, MouseButtonEventArgs e) { mouseDown = false; if (SelectedLayoutElement != null) { SelectedLayoutElement.RestartSelectionState(); } }