protected override void OnNavigatedFrom(NavigationEventArgs e) { if (e.Uri.OriginalString.Equals("/Pages/LoginDetailsPage.xaml")) { MainPageVM mainPageVM = this.DataContext as MainPageVM; mainPageVM.OnPropertyChanged("LoginStatus"); } base.OnNavigatedFrom(e); }
protected override void OnNavigatedTo(NavigationEventArgs e) { MainPageVM mainPageVM = (MainPageVM)this.DataContext; mainPageVM.NavigationService = this.NavigationService; ServiceLocator.AddService <NavigationService>(this.NavigationService); mainPageVM.OnPropertyChanged("LoginStatus"); base.OnNavigatedTo(e); }