This is a migrated thread and some comments may be shown as answers.

Reset layout of dockpanels at runtime

1 Answer 155 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mercell
Top achievements
Rank 2
Mercell asked on 17 Jul 2008, 11:19 AM
Hi,

We are using SaveXML and LoadXML to save/restore the layout of dockpanels. Is there a way to restore the layout back to the one created at designtime?

Let's say the user completely messed up his arrangement of dockpanels and want's to restore it back to the "default" at runtime - how do we do that?

Thanks.
Brian

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay Dobrev
Telerik team
answered on 17 Jul 2008, 11:26 AM
Hi Bo,

I guess you can save the layout that you have created design-time as a resource and load it back on request (as you say when a user messed up the layout). I would suggest you take a look at the following tutorial in our documentation, dealing with layout restoration:
http://www.telerik.com/help/winforms/dock_objectserializingtutorial.html

Don't hesitate to contact us if you have further questions.

Sincerely yours,
Nikolay Dobrev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Mercell
Top achievements
Rank 2
Answers by
Nikolay Dobrev
Telerik team
Share this question
or