Example #1
0
 private void Navigating(object sender, CancelEventArgs e)
 {
     _viewInitializer.NotifyDeactivating(_view, e);
     if (!e.Cancel)
     {
         _viewInitializer.NotifyDeactivated(_view);
         _navigationService.Navigating -= Navigating;
     }
 }
Example #2
0
            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);
                }
            }