Skip to content

ryanvs/AvalonDockIssue

Repository files navigation

AvalonDock and Caliburn Close Application Issue

This test application demonstrates an issue with AvalonDock and Caliburn.Micro:

Description

Using AvalonDock and Caliburn.Micro, if a displayed item overrides the Screen.CanCloseAsync method and at least one item returns false (cannot close), the DockingManager disappears even though the items are still present in the collection.

Reproduction Steps

  1. Start CaliburnDockWpfApp

Initial Avalon Test App

  1. Click the main application close "X" button, and a message box appears for BViewModel

B asks to close

  1. Click the "No" button in the message box. The Docking Manager disappears

No Documents

  1. If you click the main application close "X" button again, you are prompted again because B never closed

Still prompted to close

  1. Snoop shows the PART_SelectedContentHost is empty and Width is 0.

Still prompted to close

  1. If you use the menu to recreate A, B, and C, only A and C are visible in AvalonDock. This is because B was never actually closed and still exists, just not shown in AvalonDock.

Still prompted to close

About

Issue with AvalonDock where Documents disappear

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages