示例#1
0
 protected override void OnResume()
 {
     Mvx.TaggedTrace(MvxTraceLevel.Diagnostic, LogTag, "OnResume - Start");
     base.OnResume();
     if (!Subscribed)
     {
         SubscribeToMessages();
     }
     LifeCycleViewModel?.OnViewShown(_navigationMode);
     _navigationMode = CoreNavigationMode.Back;
 }
示例#2
0
        public override void ViewWillAppear(bool animated)
        {
            Mvx.TaggedTrace(MvxTraceLevel.Diagnostic, LogTag, "ViewWillAppear - Start");
            base.ViewWillAppear(animated);

            if (!Subscribed)
            {
                SubscribeToMessages();
            }
            LifeCycleViewModel?.OnViewShown(navigationMode);
            navigationMode = CoreNavigationMode.Back;
        }
示例#3
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            DataContext = null;
            DataContext = ViewModel;
            if (!Subscribed)
            {
                SubscribeToMessages();
            }

            LifeCycleViewModel.OnViewShown((CoreNavigationMode)e.NavigationMode);
        }
示例#4
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            DataContext = null;
            DataContext = ViewModel;

            SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = Frame.CanGoBack
                ? AppViewBackButtonVisibility.Visible
                : AppViewBackButtonVisibility.Collapsed;

            if (!Subscribed)
            {
                SubscribeToMessages();
            }

            LifeCycleViewModel.OnViewShown((CoreNavigationMode)e.NavigationMode);
        }