Hi,
here's my situation: I have a static number of "well known" kryptonpages which are always loaded/instanciated which can dock, auto-hide, float or closed (hidden), one of them is even capable of being in the document workspace.
Then I have a random number of document workspace krypton pages where I don't know how much of them are present and how the cell layout is.
I guess this is quite common for docking enabled applications.
Now here's my question: I was wondering how I can provide some "reset workspace" functionality. The goal is, that regardless where and how my well known pages are docked/hidden/floated/etc., I want to reset the layout of these pages to a default layout.
Something like this: a reset should dock page 1 to the left edge, page 2 and 3 should be docked at the bottom but not tabbed, instead I want them to be in 2 cells vertically split and page 3 should be autohidden at the right edge. The one page which is also able to be a document in the workspace, should show up in the document workspace, regardless where it was before.
The idea is, if the user messes around too much with the pages, he can reset to the default layout (the starting point) at any time.
This reset must not touch any of the random document workspace pages.
I know I could use persistence for this, but I was wondering how I would do that by code.
Thanks,