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

New Post: Requirements to save a layout

$
0
0

Hello all!

I have an app that contains a TabControl element with views each containing their own dockingmanager instance.

I've tried to do something like...

 

//dockA's view is currently shown on the TabControl/MainWindow.xaml
dockA.SaveLayout(pathA);
dockB.SaveLayout(pathB); //Program breaks here with an exception


The exception says...
"Unable to serialize docking layout while DockingManager control is unloaded"

It seems as though I cannot save other dockingmanager layouts that are not currently selected and shown by my TabControl.

Is there a way to save each one? Or what is the procedure/requirements necessary to save dockingmanager's layout from another?

Thank you! 


Viewing all articles
Browse latest Browse all 2690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>