Quantcast
Channel: AvalonDock
Viewing all articles
Browse latest Browse all 2690

Created Issue: [Version 2.0] Restore floating windows on navigation based application [15396]

$
0
0
I have a navigation based application, as in the sample attached, I need to navigate between different pages that have inside them a docking manager (1 docking manager for each page).
If I open the first page, clicking on "Portfolio" button on the left button of the window I navigate to the first page, then I take the anchorable or the document out of the docking area, in a new floatingwindow.
At this point if I navigate to the other page (clicking on the "Stock Quotes" button) the floating window close, and the second page is displayed.
Now if I come back to the first page the docking manager of the first page is displayed again, but all the items (docking or anchorable) inside the docking area are preserved in their position, but the floating window is closed and I don't know how to make it to reappear in the same position.
I don't need to serialize and deserialize the layout for this page (for istance for performance problems), I have added 2 meths for deactivate and activate the view when it is closing or displayed.
I'd like to store the information about the location of the floating windows in the deactivate methods and the restore them in the activate methos when the page is displayed again.
Is there a methods to call to restore the floating windows? Or is there a way to add again the content of the floating window in the docking manager and make it displaying in a floating window in the same position and size?
I'd like even to have e method for restoring the layout to the default layout done the first time the page is displayed, even this without using the serialization, is it possible?
I have tried using the serialinging/deserializing on file as the AvalonDock sample but I can't restore the layout as the floating windows are clsoed.

Viewing all articles
Browse latest Browse all 2690

Trending Articles