I have a class that implements IEditableObject and now I'm wondering if it's possible to call BeginEdit() automatically when the source of the binding is updated?
There are two possible scenarios:
- Object gets populated via the database. In this case, I don't want to call BeginEdit().
- Object gets populated via the input fields by user. In this case, I would like to call the BeginEdit() automatically when the source is updated (I use two-way binding and INotifyPropertyChanged).
I was considering calling BeginEdit() when the property is changed but that wouldn't go along well with the 1st scenario since I don't want BeginEdit() to be called when populating from database.