Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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);
        }