Thanks for your quick reply.
I'm not actually using a DocumentContainer. My application closely resembles the DockingManger from the syncfusion examples...
\Essential Studio Samples\15.2.0.40\WPF\Showcase\DockingManagerMVVMCaliburnDemo\CS
In this particular example, there are 2 view models added with "DockState.Document enum".
MainWindowXAMLViewModel mainwindowxaml = new MainWindowXAMLViewModel() { Header = "MainWindow.xaml", State = DockState.Document };
MainWindowCSViewModel mainwindowcs = new MainWindowCSViewModel() { Header = "MainWindow.xaml.cs", State = DockState.Document };
So in my application i'm showing a dialog to prompt the user to save their edits. I've attached a sample application where i'm attempting to intercept the closing of either of these viewmodels (MainWindowXAMLViewModel, MainWindowCSViewModel).
In my application it's the state of the view models (changed or unchanged) that determine whether a modal dialog should be shown (which is handled by the shell). Is it possible to define a new behaviour in the DockingAdapterView (or ViewModel), and not in the seperate DockingAdapterMVVM2015 assembly?
This will work for me! Thanks for your help Subashini.