Declined
Last Updated: 10 Feb 2015 13:09 by ADMIN
ADMIN
Hristo
Created on: 30 Jan 2015 13:51
Category: Dock
Type: Bug Report
0
FIX. RadDock does not serialize the DockState of ToolWindow when the DockState is set to Floating and the window is hidden. The RadDock only contains the ToolWindow
DECLINED: Currently, RadDock is designed to only persist the position of tool windows. The document windows are consider to be kind of dynamic content presenters which need to be opened/closed at runtime. 
ORIGINAL DESCRIPTION:
Create a single ToolWindow, set its DockState to Floating, add this window to a RadDock. Start the application, hide the window, save the layout, then load the layout, the window is not hidden. In the xml there is no node with ToolWindow

To  reproduce:

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();

        ToolWindow newTool = new ToolWindow();
        newTool.Name = "New Tool";

        newTool.CloseAction = DockWindowCloseAction.Hide;


        this.radDock1.AddDocument(newTool);
        newTool.DockState = DockState.Floating;
        this.radDock1.ActiveWindow = newTool;
    }

    private void radButton1_Click(object sender, EventArgs e)
    {
        this.radDock1.SaveToXml(@"..\..\layout1.xml"); 
    }

    private void radButton2_Click(object sender, EventArgs e)
    {
        this.radDock1.LoadFromXml(@"..\..\layout1.xml");
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
1 comment
ADMIN
Ivan Todorov
Posted on: 10 Feb 2015 13:08
DECLINED: Currently, RadDock is designed to only persist the position of tool windows. The document windows are consider to be kind of dynamic content presenters which need to be opened/closed at runtime.