I'm a bit new to MVVM, and was wondering
Let's say I have defined a ObservableCollection<Differences> Diffs
property.
I also have the following property:
public bool IsSame
{
get
{
return Diffs.Count == 0;
}
}
I dont get how I'm supposed to implement the OnPropertyChanged
for IsSame
, because it is implicit from the Diff list.
- Should I attach to the List
OnCollectionChanged
event and then check if it changesIsSame
? - Should I use a backing field anyway and handle the List
OnCollectionChanged
?
Thank you very much.