Unplanned
Last Updated: 29 Mar 2016 12:16 by ADMIN
ADMIN
Dimitar
Created on: 30 Nov 2015 09:04
Category: Dock
Type: Bug Report
0
FIX. RadDock - the DesiredDockState is not respected when the layout is loaded from an XML file
To reproduce:
- Add several dock windows and hide some of them.
- Save the layout.
- Load the layout, the windows are not hidden

Workaround:
string strLayout = File.ReadAllText(@"..\..\layout.xml");

foreach (DocumentWindow dw in radDock1.DockWindows.DocumentWindows)
{
    if (strLayout.IndexOf("DesiredDockState=\"Hidden\" Name=\"" + dw.Name + "\"") != -1 && dw.DockState != DockState.Hidden)
    {
        dw.DockState = DockState.Hidden;
    }
}

0 comments