This project is read-only.

[Version 2.0] Floating windows deserialization

Aug 4, 2012 at 10:46 PM
Edited Aug 4, 2012 at 11:20 PM

Hello everybody.

I have a floating window, when i serialize it to xml-file and then restore it from file, everything work nice except this floating window. If this window is docked before serialization, it's restore correct.

How can i fix it?


UPD: The main problem is in TabControl. Floating window complitly disappear from screen when i just change tab item!


UPD2: Just fixed it.

Changed in DockingManager.cs two lines:

        void DockingManager_Unloaded(object sender, RoutedEventArgs e)
			if (!DesignerProperties.GetIsInDesignMode(this))
			    foreach (var fw in _fwList.ToArray())
			//this two lines are disabled by me to fine TabControl work
			//        fw.Owner = null;
			//        fw.InternalClose();
Sep 25, 2012 at 9:49 PM

I am having a similar problem..

I have a Tab in a TabControl where I change the Tab.Content = Screen.xaml's content, where Screen.xaml contains a separate dockingManager. 

When I have floating window in a screen, switch to another screen's content then back, the floating window disappears.

With your above change, the floating window never disappears when switching to another screen, which is equally unacceptable.

Does anyone know how to retain the floating window and change the visibility when it's dockingManager is loaded/unloaded?