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

When to call LoadLayout?

1 Answer 47 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Kristoffer
Top achievements
Rank 1
Kristoffer asked on 07 Feb 2013, 10:55 AM
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?

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 12 Feb 2013, 08:14 AM
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.

Tags
Docking
Asked by
Kristoffer
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or