public TherapistPage(TherapistVM therapist) { InitializeComponent(); BindingContext = therapist; Therapist = therapist; DisplayTherapist(); }
private void TherapistTapped(object sender, EventArgs e) { var imageCell = (ImageCell)sender; var therapist = (Therapist)imageCell.BindingContext; var therapistVM = new TherapistVM { IsStarred = App.Instance.AppState.TherapistCollection.StarredTherapists.Contains(therapist), Therapist = therapist }; var therapistPage = new TherapistPage(therapistVM); App.Instance.PushPage(therapistPage); }