protected override void OnDrag(DragEvent e) { if (e.Button == MouseButton.Right) { return; } if (DragBox.State == Visibility.Visible) { DragBox.HandleDrag(e); } moveCurrentSelection(e); }
protected override bool OnDragStart(DragStartEvent e) { if (e.Button == MouseButton.Right) { return(false); } if (movementBlueprint != null) { return(true); } if (DragBox.HandleDrag(e)) { DragBox.Show(); return(true); } return(false); }
protected override bool OnDragStart(DragStartEvent e) { if (e.Button == MouseButton.Right) { return(false); } if (movementBlueprints != null) { isDraggingBlueprint = true; changeHandler?.BeginChange(); return(true); } if (DragBox.HandleDrag(e)) { DragBox.Show(); return(true); } return(false); }