protected override void OnResume() { Mvx.TaggedTrace(MvxTraceLevel.Diagnostic, LogTag, "OnResume - Start"); base.OnResume(); if (!Subscribed) { SubscribeToMessages(); } LifeCycleViewModel?.OnViewShown(_navigationMode); _navigationMode = CoreNavigationMode.Back; }
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; }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); DataContext = null; DataContext = ViewModel; if (!Subscribed) { SubscribeToMessages(); } LifeCycleViewModel.OnViewShown((CoreNavigationMode)e.NavigationMode); }
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); }