private async Task Save() { ContactModel model = ContactFake.Update(_id, Name, Email, IsFavorite); MessagingCenter.Send(model, "UpdateList"); await NavigationHelper.GetInstance().GoBack(); }
protected override void OnNavigatedFrom(NavigationEventArgs e) { if (e.NavigationMode != NavigationMode.Back) { NavigationHelper.GetInstance().Add(mmvm); } }
protected override void OnNavigatedTo(NavigationEventArgs e) { try { aavm = (AllArtistsViewModel)NavigationHelper.GetInstance().Peek(); aavm = (AllArtistsViewModel)NavigationHelper.GetInstance().Pop(); } catch (Exception ex) { aavm = new AllArtistsViewModel(); } DataContext = aavm; }
protected override void OnNavigatedTo(NavigationEventArgs e) { if (_isNewPageInstance) { if (mmvm == null) { if (NavigationHelper.GetInstance().Count() > 0) { mmvm = (MainMenuViewModel)NavigationHelper.GetInstance().Pop(); } else { mmvm = new MainMenuViewModel(); } } DataContext = mmvm; } _isNewPageInstance = false; }
private async Task GotoContactDetail(string id) { await NavigationHelper.GetInstance().GotoContactDetail(id); }