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

LoadLayout problem

1 Answer 66 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Zvi
Top achievements
Rank 1
Zvi asked on 20 Jan 2018, 06:24 AM

Hello,

Attached a simple application that has one pane. 

Upon init, I'm calling to:

mainPane.Content = new UserControl1();

 

Upon 'save' menu item I'm calling to:

FileStream Stream = File.Create("MyApplication.wsp");
Docking.SaveLayout(Stream);
Stream.Close();

 

Upon 'load' menu item I'm calling to:

FileStream Stream = File.Open("MyApplication.wsp", FileMode.Open);
Docking.LoadLayout(Stream);
Stream.Close();

 

But at this point, the pane is displayed exactly in the location where it was when layout was saved.

But it's empty, without its user control.

Can you please help ?

How can I upload full source tree ?

Thank you,

Zvika 

1 Answer, 1 is accepted

Sort by
0
Zvi
Top achievements
Rank 1
answered on 20 Jan 2018, 06:35 AM

Solution:

I had to add SerializationTag to the RadPane declaration in xaml. 

<telerik:RadPane x:Name="mainPane" telerik:RadDocking.SerializationTag="PaneLeft1"></telerik:RadPane>

Thank you,

Zvika 

Tags
Docking
Asked by
Zvi
Top achievements
Rank 1
Answers by
Zvi
Top achievements
Rank 1
Share this question
or