This project has moved and is read-only. For the latest updates, please go here.

AvalonDock - Window disappears when dragging from tabbed document to floating

Jun 13, 2013 at 11:06 PM
Anyone have any feed back on this problem im having. When dragging a document out of the docking pane the window disappears, after i release the mouse it comes back however if i try to drag it to another side to split the pane i get an error.

System.ArgumentException: Hwnd of zero is not valid.
at System.Windows.Interop.HwndSource.CriticalFromHwnd(IntPtr hwnd)
at System.Windows.Interop.HwndSource.FromHwnd(IntPtr hwnd)
at Microsoft.Windows.Shell.WindowChromeWorker.<_SetWindow>b__1(Object sender, EventArgs e)
at System.Windows.Window.OnSourceInitialized(EventArgs e)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.CreateSourceWindowDuringShow()
at System.Windows.Window.SafeCreateWindowDuringShow()
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.Show()
at Xceed.Wpf.AvalonDock.DockingManager.<>c__DisplayClass1d.<StartDraggingFloatingWindowForContent>b__1c()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

In the LayoutTemplate im just using a ContentPresenter and binding the Content to a variable on my model.

Sep 22, 2016 at 6:08 PM
I have the same error, 3 years later... anyone?
Sep 23, 2016 at 4:23 PM

In what version of AvalonDock are you testing this ?
I believe there was a fix for this "disappeared" window.
Can you submit a sample and the exact steps to reproduce if you still have this issue in the latest version ?
The Toolkit LiveExplorer have an AvalonDock sample and it doesn't have this issue.
Sep 23, 2016 at 8:06 PM
I'm using the latest version. I'm using Gemini and Gemini does not raise this error. However, I've updated nugets like Mahapps.Metro and Caliburn, also applied a bunch of Mahapps true resources (which Gemini wasn't doing).

I have no idea what's wrong and how to fix... bummer. If a sample is required, I'll try to create one but it will take some time.