AvalonDock
AvalonDock copied to clipboard
Docking document and anchorable can result in unclosable window
Hi,
in new 4.0 AD version new posibility to dock dokument panel in floating window you can create a floating window that cannot be closed.
repro steps:
-
open AD 4.0 MVVMTestApp.exe
-
open random document

-
undock document to floating window
-
drag file stats panel to floating window and dock it as left/top/right/bottom side

Issue 1: the anchorable is missing close/hide button
- close document in floating window

Issue 2: floating window is missing close button
I can verify both issues. These problems should be fixed but there are some workaround solutions to close the Floating File Stats Tool in the meantime.
You can either:
- drag the File Stats Tool back into the mainwindow and dock it into an outer docking position (normal hide buttons are available now) or
- you can drag on the document tab of the floating File Stats Tool (as indicated by the red arrow in the screenshot below) to make the missing buttons re-appear

The discussion in issue 117 is probably related. We might have to undo the quick fix and go for the full implementation for the next release ...
LayoutAnchorable has a property called CanDockAsTabbedDocument which could help to solve this issue. However, it introduces one more side effect - there is no way to intermix documents and anchorables in a floating windows.
Is there any way to have both document and anchorable together in a floating window, but still each of them being a document and anchorable (this means each of them still gets a proper style and do not introduce ugly CanClose side effects) ?