コード例 #1
0
 public TherapistPage(TherapistVM therapist)
 {
     InitializeComponent();
     BindingContext = therapist;
     Therapist      = therapist;
     DisplayTherapist();
 }
コード例 #2
0
        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);
        }