コード例 #1
0
        private async void ViewDetails(PersonWanted selectedPerson)
        {
            var parameters = new NavigationParameters();

            parameters.Add("model", selectedPerson);
            await NavigationService.NavigateAsync("DetailPage", parameters);
        }
コード例 #2
0
        private void OnViewDetail(PersonWanted person)
        {
            var page = new WantedDetailPage();

            page.Title = person.NickName;
            page.SetModel(person);
            navigation.PushAsync(page);
        }
コード例 #3
0
 //Method For move the the other page
 void GetDetailsACriminal(PersonWanted obj)
 {
     Application.Current.MainPage.Navigation.PushAsync(new CriminalDetailsPage(obj));
 }
コード例 #4
0
 public CriminalDetailsViewModel(PersonWanted person)
 {
     Criminal = person;
 }
コード例 #5
0
 public CriminalDetailsPage(PersonWanted person)
 {
     InitializeComponent();
     BindingContext = new CriminalDetailsViewModel(person);
 }
コード例 #6
0
 public void SetModel(PersonWanted personWanted)
 {
     BindingContext = new WantedDetailViewModel(personWanted);
 }
コード例 #7
0
 public WantedDetailViewModel(PersonWanted person)
 {
     PersonWanted     = person;
     SendAlertCommand = new Command(OnSendAlertCommandAsync);
 }