Quantcast
Viewing all articles
Browse latest Browse all 204402

Databinding in master-details page

When using two-way databinding in Xamarin, how can I determine whether an update to a property on a model was from an actual user entry or when the underlying object was changed because a different object was selected from the master list?

Imagine a list of users and a detail section (user name, dob, etc). When the user selects a new user, the user details fields change to reflect the chosen user. That causes the PropertyChanged events to fire on the fields. I'd like to find out if the fields have changed because of user change so I can say "Details have changed, do you want to save?", etc.

Any thoughts?

Thanks


Viewing all articles
Browse latest Browse all 204402

Trending Articles