Hi,
i add a RadPane dynamically by clicking a button.
As you can see the Content of the RadPane ist a Usercontrol called "Controls.LayoutData". In this Control i can choose a Report,
which is shown in the Control.
But how do i save this layout?
This way just save the Layout with empty RadPanes:
how do I save the contents of the newly created/all RadPanes????
Thanks a lot
Best Regards
Rene
i add a RadPane dynamically by clicking a button.
{
RadPane radPane = new RadPane() { Content = new Controls.LayoutData() };
RadPaneGroup radPaneGroup = new RadPaneGroup();
RadSplitContainer radSplitContainer = new RadSplitContainer() { InitialPosition = DockState.FloatingDockable };
radPaneGroup.Items.Add(radPane);
radSplitContainer.Items.Add(radPaneGroup);
Docking.Items.Add(radSplitContainer);
}
As you can see the Content of the RadPane ist a Usercontrol called "Controls.LayoutData". In this Control i can choose a Report,
which is shown in the Control.
But how do i save this layout?
This way just save the Layout with empty RadPanes:
try
{
MemoryStream stream = new MemoryStream();
this.Docking.SaveLayout(stream);
stream.Seek(0, SeekOrigin.Begin);
StreamReader reader = new StreamReader(stream);
string xml_s = reader.ReadToEnd();
string path_s = Klassen.helper.WPFAnwendung_Path() + "/Layout/laoyut.xml";
using (StreamWriter Mywriter = new StreamWriter(@path_s))
{
Mywriter.Write(xml_s);
Mywriter.Close();
Mywriter.Dispose();
}
}
how do I save the contents of the newly created/all RadPanes????
Thanks a lot
Best Regards
Rene