protected override async void OnNavigatedTo(NavigationEventArgs e) { var navObj = new NavigationObject(e.Parameter); viewModel.AppUser = navObj.Get <AppUser>(); viewModel.Concert = navObj.Get <Concert>(); viewModel.NewConcertButtonVisibility = viewModel.AppUser.IsInRole(Roles.Administrator); await viewModel.GetConcertDetails(); base.OnNavigatedTo(e); }
protected override void OnNavigatedTo(NavigationEventArgs e) { var navObj = new NavigationObject(e.Parameter); viewModel.AppUser = navObj.Get <AppUser>(); base.OnNavigatedTo(e); }
protected override void OnNavigatedTo(NavigationEventArgs e) { viewModel.Login.Reset(); viewModel.Registration.Reset(); var navObj = new NavigationObject(e.Parameter); viewModel.Login.UserName = navObj.Get <AppUser>().UserName; /// Temp /// viewModel.Login.UserName = "******"; viewModel.Login.Password = "******"; /// Temp /// base.OnNavigatedTo(e); }