public void OnNavigatingFrom(NavigationCancelArgs args) { // We need to explicity close the active item when navigating away. // This is due to a potential bug in Caliburn.Micro. While CM properly deactivates the active item, // it doesn't set ActiveItem to null. Since ResourceMgtViewModel is a singleton, this will // cause the last active item and all of its dependencies to stay in memory, even though // the user effectively closed the resource management module. if (ActiveItem != null) { ActiveItem.TryClose(); } }
public virtual void OnNavigatingFrom(NavigationCancelArgs args) { }