Declined
Last Updated: 25 May 2016 14:17 by ADMIN
ADMIN
Telerik Admin
Created on: 09 Aug 2013 15:40
Category: Docking
Type: Bug Report
3
If a SplitContainer's InitialPosition is set to FloatingDockable and then the layout is saved in the Unloaded event of the control, that SplitContainer is not shown after layout load.
If a SplitContainer's InitialPosition is set to FloatingDockable and the the layout is saved in the Unloaded event of the control, that SplitContainer is not shown after layout load.

The same could be observed if you float a Pane by dragging it out of its docked state.
1 comment
ADMIN
Nasko
Posted on: 25 May 2016 14:10
Hello,

The observed behavior is consider as an expected one. When the Docking controls is unloaded  internally in our implementation all the ToolWindows are closed. Because of that when the layout gets saved all ToolWindows are already closed and are saved as such. So, when the layout is loaded no ToolWindows should be visible including the FloatingOnly ToolWindow. The visualization of the FloatingOnly ToolWindow we consider as a bug and will be fixed with one of our next internal builds.

If you need however, to save the layout when the Docking is unloaded and before the ToolWindows are closed from our internal logic you need to handle the event as follows:

public MainWindow()
{
    InitializeComponent();
	EventManager.RegisterClassHandler(typeof(RadDocking), RadDocking.UnloadedEvent, new RoutedEventHandler(OnUnloaded));
}

private void OnUnloaded(object sender, RoutedEventArgs e)
{
	//save the layout here		
}

Regards, 
Nasko