When to call LoadLayout?

2 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 07 Feb 2013 Link to this post

    I have defined a RadDocking in my MainWindow.xaml. At program startup, I want to load a layout from a resource XML file. Should I do this in the MainWindow's Loaded event?

    In an ideal world, I would just include the xml in the XAML:
    <include MyDockingConfiguration.xml />

    Perhaps this can be done using ContentControl and a ControlTemplate?
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 12 Feb 2013 Link to this post

    Hello Kristoffer,

    The best approach on loading the layout of the RadDocking control is with its built-in LoadLayout() method.

    You could call this method of the Docking control in the Loaded event of the MainWindow.

    Regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top