Case 1: I create a DockingManager without adding it to a window. I define a floating window in the docking manager; the floating window appears.
Case 2: I create a DokingManager inside a Window, and show the window. I define a floating window in the docking manager; the floating window of course appears. Then I remove the DockingManager from its parent window. The floating window is hidden.
This is no bug, but I feel these behaviours are not consistent with each other. Removing the DockingManager from a visual tree should have the same effect as never having been in a visual tree at all; hiding the floating windows being my preferred choice.
A variation on case 2: instead of removing the DockingManager from its visual tree, set its Visibility to Collapsed. The floating window is not hidden. I think it should have the same effect as the original version of Case 2.
Case 1: I create a DockingManager without adding it to a window. I define a floating window in the docking manager; the floating window appears.
Case 2: I create a DokingManager inside a Window, and show the window. I define a floating window in the docking manager; the floating window of course appears. Then I remove the DockingManager from its parent window. The floating window is hidden.
This is no bug, but I feel these behaviours are not consistent with each other. Removing the DockingManager from a visual tree should have the same effect as never having been in a visual tree at all; hiding the floating windows being my preferred choice.
A variation on case 2: instead of removing the DockingManager from its visual tree, set its Visibility to Collapsed. The floating window is not hidden. I think it should have the same effect as the original version of Case 2.