Closing the shell won't call CanClose on my child windows (WPF)

Topics: Bugs, Framework Services
Nov 3, 2011 at 3:46 AM


I have noticed that the CanClose method won't get called on child windows when the shell gets closed. This can easily be reproduce by overriding the CanClose method of the DialogViewModel class of the Caliburn.Micro.HelloWindowManager sample and calling the callback with false. When running the application and clicking on the Open modeless button, closing the main window will close all the window even if we did say not to allow it.