Reset layout of dockpanels at runtime

2 posts, 1 answers
  1. Mercell
    Mercell avatar
    33 posts
    Member since:
    Nov 2006

    Posted 17 Jul 2008 Link to this post

    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
  2. Answer
    Nikolay Dobrev
    Admin
    Nikolay Dobrev avatar
    201 posts

    Posted 17 Jul 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top