private void Navigating(object sender, CancelEventArgs e) { _viewInitializer.NotifyDeactivating(_view, e); if (!e.Cancel) { _viewInitializer.NotifyDeactivated(_view); _navigationService.Navigating -= Navigating; } }
private void Navigating(object sender, CancelEventArgs e) { var view = _navigationService.Content; if (view == null) { return; } _viewInitializer.NotifyDeactivating(view, e); if (!e.Cancel) { _viewInitializer.NotifyDeactivated(view); } }