Last Updated: 20 Mar 2018 12:53 by Dimitar
Created on: 27 Feb 2018 16:04
Category: Dock
Type: Bug Report
FIX. RadDock - maximized floating windows should be restored to their Normal window state when started dragging
The expected behavior should be similar to Visual Studio, once a maximized floating window starts being dragged it should go to a normal state so that the window under it is visible.

How to reproduce: just maximize a floating window, then start dragging it from the title bar, the docking guides will appear which do not help much since the window is still maximized.

Workaround: handle the Starting event of the DragDropService and change the WindowState of the window
public partial class Form1 : Form
    public Form1()
        DragDropService service = this.radDock1.GetService<DragDropService>();
        service.Starting += Service_Starting;

    private void Service_Starting(object sender, StateServiceStartingEventArgs e)
        FloatingWindow fw = e.Context as FloatingWindow;
        if (fw != null && fw.WindowState == FormWindowState.Maximized)
            fw.WindowState = FormWindowState.Normal;
            fw.Location = new Point(Cursor.Position.X - fw.Size.Width / 2, Cursor.Position.Y);