public SpeakerDetails(SpeakerListModel speakerListModel) { InitializeComponent(); Name.Text = speakerListModel.FullName; Photo.Source = speakerListModel.Photo; Bio.Text = speakerListModel.Bio; }
async void Handle_ItemSelected(object sender, Xamarin.Forms.SelectedItemChangedEventArgs e) { if (e.SelectedItem == null) { return; //ItemSelected is called on deselection, which results in SelectedItem being set to null } SpeakerListModel item = e.SelectedItem as SpeakerListModel; await Navigation.PushAsync(new SpeakerDetails(item)); }