private async void ViewDetails(PersonWanted selectedPerson) { var parameters = new NavigationParameters(); parameters.Add("model", selectedPerson); await NavigationService.NavigateAsync("DetailPage", parameters); }
private void OnViewDetail(PersonWanted person) { var page = new WantedDetailPage(); page.Title = person.NickName; page.SetModel(person); navigation.PushAsync(page); }
//Method For move the the other page void GetDetailsACriminal(PersonWanted obj) { Application.Current.MainPage.Navigation.PushAsync(new CriminalDetailsPage(obj)); }
public CriminalDetailsViewModel(PersonWanted person) { Criminal = person; }
public CriminalDetailsPage(PersonWanted person) { InitializeComponent(); BindingContext = new CriminalDetailsViewModel(person); }
public void SetModel(PersonWanted personWanted) { BindingContext = new WantedDetailViewModel(personWanted); }
public WantedDetailViewModel(PersonWanted person) { PersonWanted = person; SendAlertCommand = new Command(OnSendAlertCommandAsync); }