void IHandler <BackgroundNavigationMessage> .Handle(object sender, BackgroundNavigationMessage message)
 {
     if (IsOpen && _viewModel != null && !ViewModel.IsDisposed)
     {
         NavigationDispatcher.OnNavigated(new NavigationContext(NavigationType.Page, NavigationMode.Background, ViewModel, null, this, message.Context));
     }
 }
        void IHandler <BackgroundNavigationMessage> .Handle(object sender, BackgroundNavigationMessage message)
        {
            var currentViewModel = CurrentViewModel;

            if (currentViewModel != null)
            {
                OnNavigated(new NavigationContext(NavigationType.Page, NavigationMode.Background, currentViewModel, null, this, message.Context));
            }
        }
Ejemplo n.º 3
0
 private static void OnBackgroundMessage(object arg1, BackgroundNavigationMessage message)
 {
     IsBackground = true;
     Tracer.Warn("App did enter background");
 }