Hi I've a problem with RadDock persistance First i create form and attach raddock and RadMenu with 1 item to it public partial class Form1 : Form |
{ |
string file = "a.xml"; |
HostWindow hw = null; |
public Form1() |
{ |
InitializeComponent(); |
this.FormClosing += new FormClosingEventHandler(Form1_FormClosing); |
hw = radDock1.DockControl(new TextBox(), DockPosition.Left); |
if (System.IO.File.Exists(file)) |
radDock1.LoadFromXml(file); |
} |
void Form1_FormClosing(object sender, FormClosingEventArgs e) |
{ |
radDock1.SaveToXml(file); |
} |
private void radMenuItem1_Click(object sender, EventArgs e) |
{ |
radDock1.DisplayWindow(hw); |
} |
} Now I run such app and: 1. Change TextBox to floating window 2. Hide it by closing 3. Show it by radMenuItem1 click It works as expected, but when I: 1. Change TextBox to floating window 2. Hide it by closing 3. Restart application 4. Show control by radMenuItem1 click Control appears as toolbox at dock container When i closed application without hiding settings are persisted beetwen runs How can i make it work? |