public MainPageViewModel(INavigationService navigationService) : base(navigationService) { Title = "Quick Task"; this.PageAppearingCommand = new Command(async() => { IsBusy = true; await LoadOpenRequests(); IsBusy = false; UserInfo userInfo = new UserInfo() { UserId = "123456", Password = "******", AccountId = "123456", PushRegistrationId = Settings.Current.RegistrationId, }; await NotificationsHelper.RegisterAccountForPNS(userInfo); }); this.RefreshCommand = new Command(async() => { IsRefreshing = true; await LoadOpenRequests(); IsRefreshing = false; }); this.SelectedCommand = new Command <Parent>(async(parentInfo) => { if (parentInfo != null) { NavigationParameters _navParameters = new NavigationParameters(); _navParameters.Add("BatchGuid", parentInfo.BatchGuid.ToString()); await NavigationService.NavigateAsync("JobDetail", _navParameters); } }); }