AvalonDock icon indicating copy to clipboard operation
AvalonDock copied to clipboard

Docking document and anchorable can result in unclosable window

Open Muhahe opened this issue 5 years ago • 2 comments
trafficstars

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:

  1. open AD 4.0 MVVMTestApp.exe

  2. open random document image

  3. undock document to floating window

  4. drag file stats panel to floating window and dock it as left/top/right/bottom side image

Issue 1: the anchorable is missing close/hide button

  1. close document in floating window image

Issue 2: floating window is missing close button

Muhahe avatar Mar 05 '20 14:03 Muhahe

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
    Untitled

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 ...

Dirkster99 avatar Mar 05 '20 20:03 Dirkster99

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) ?

Simmy07 avatar Jul 16 '20 11:07 Simmy07