Exemplo n.º 1
0
 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
     }
     SessionListModel item = e.SelectedItem as SessionListModel;
     await Navigation.PushAsync(new SessionDetails(item));
 }
 public SessionDetails(SessionListModel sessionListModel)
 {
     InitializeComponent();
     Time.Text     = sessionListModel.DateTime;
     Venue.Text    = sessionListModel.Venue;
     Status.Text   = sessionListModel.Status.ToString();
     Title.Text    = sessionListModel.Title;
     Abstract.Text = sessionListModel.Abstract;
 }