Beispiel #1
0
 private void OnPopupClosed(object sender, object e)
 {
     this.RaiseEvent(Dismissed);
     _popup.Child              = null;
     Window.Current.Activated -= OnWindowActivated;
     _viewModel.OnNavigatedFrom(new NavigationArgs(NavigationArgs.NavigationMode.Back));
 }
Beispiel #2
0
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            base.OnNavigatedFrom(e);

            ViewModelBase viewModel = DataContext as ViewModelBase;

            if (viewModel != null)
            {
                viewModel.OnNavigatedFrom(NavigationHelper.FromArgs(e));
            }
        }
Beispiel #3
0
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            base.OnNavigatedFrom(e);

            NavigationArgs args = NavigationHelper.FromArgs(e);
            ViewModelBase  vm   = DataContext as ViewModelBase;

            if (vm != null)
            {
                vm.OnNavigatedFrom(args);
            }
        }