This project is read-only.

[1.3] Floating Window and Layout loading

Jul 10, 2010 at 10:24 PM

Hi,

Suppose an application has multiple layouts.  I load layout "A" and drag out a DockableContent ("X") to a FloatingWindow.  Then I load layout "B" that does not have DockableContent ("X") defined (as hidden).  The floating window containing "X" persists on the load layout.

I would like floating windows to close when loading a layout.

My solution was to modify:

RestoreLayout(XmlDocument doc)

...

            //Hide temp windows
            HideFlyoutWindow();
            HideNavigatorWindow();
            HideFloatingWindow(); <---- Add this function

In function HideFloatingWindow i simply close all FloatingWindow in the _floatingWindows collection

 

Does this seem like a reasonable implementation?  Is it something that should be added to default AvalonDock functionality?