Conductor for Child-ViewModels in Main-ViewModel.

Topics: Feature Requests
Apr 8, 2013 at 12:53 PM
Edited Apr 8, 2013 at 12:54 PM
My WPF application consists of a main screen, from which you can open different independent new windos (Screen).
There are two ways of closing a child window:
  1. Closing a child screen should check for modifications and prompt the user for saving the changes before closing the child window.
  2. Closing the main window should check all child windows, if there are modifications and prompt the user as well.
    The Main view model derives from Conductor<IScreen>.Collection.AllActive, the children from Screen.
    Problem:
    Closing a child window does not remove it from the Items-Collection of the Conductor. Therefore, I close the child view model manually: ((MainViewModel)Parent).CloseItem(this), but this conflicts when closing the main view model.
    Is there a possiblity for having both close mechnism?