Replacing Save/LoadLayout with XMLSerializer

5 posts, 1 answers
  1. Jason
    Jason avatar
    21 posts
    Member since:
    Nov 2010

    Posted 29 Nov 2011 Link to this post

    I found that the default RadDocking.SaveLayout and LoadLayout functionality was not sufficient for my needs so I created a bunch of custom serializable classes that I populate from the RadDocking control. Initially this worked out for me but then I tested a scenario with a floating pane and could not get access to it. The RadDocking.Items collection only returns docked RadSplitContainers and the RadDocking.ToolWindows collection is a private field so I cannot access it from my code. Is there any way to access the ToolWindows in a RadDocking control so I can serialize them myself? If not would it be possible to get a public readonly property that returns an IEnumerable(Of ToolWindow) from the ToolWindows field? Alternatively, the RadDocking.Items collection would ideally contain the DocumentHost, docked SplitContainers and floating ToolWindows but I doubt that would be easily changed.
  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 02 Dec 2011 Link to this post

    Hi Jason,

    The SplitContainers property of the RadDocking control returns all SplitContainers no matter docked or floating. It should help you resolve the floating windows.

    Hope this helps.

    Greetings,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Jason
    Jason avatar
    21 posts
    Member since:
    Nov 2010

    Posted 02 Dec 2011 Link to this post

    Miroslav,

    I did previously know about that property and it would be useful if it wasn't scoped as a friend property. Consider making it public if that will be the suggested way to do it.

    Thanks,
    Jason
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 02 Dec 2011 Link to this post

    Hello Jason,

    We made it public in the 2011 Q3 release. If you upgrade to this version you will be able to use it.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Jason
    Jason avatar
    21 posts
    Member since:
    Nov 2010

    Posted 02 Dec 2011 Link to this post

    Miroslav,

    Perfect. I'm on Q2 and had already downloaded Q3 but just hadn't installed it yet.

    Thanks,
    Jason
Back to Top
UI for WPF is Visual Studio 2017 Ready