AvalonDock demo bug report

Mar 17, 2010 at 9:39 AM
Edited Mar 17, 2010 at 5:00 PM

In this demo

If I do stuff listed below:

1 save layout immediately after I run the demo, it is all OK

 

2 drag the DockableContent whose title is "properties" out of the main window

it's still OK

 

 

3 try to restore the layout.

The layout do got restored, but......

 

then there will be an empty window left at the position where the properties window was dragged to.

 

Hope it will be fixed!

Thanks!

Apr 22, 2010 at 3:57 AM

Fix suggestion

There are 3 if statements in the DockingManager.DetachContentFromDockingManager method. If the second one is true, it will call FloatingWindow.Close, and that will cause the content.State to change to Hidden, so the third if statement will run too, and that is what causes the empty window hanging there.

Hope this would help!
RGDS!