ObservableCollection no se da cuenta cuando cambia el artículo en él (incluso con INotifyPropertyChanged)
¿Alguien sabe por qué este código no funciona?
public class CollectionViewModel : ViewModelBase {
public ObservableCollection<EntityViewModel> ContentList
{
get { return _contentList; }
set
{
_contentList = value;
RaisePropertyChanged("ContentList");
//I want to be notified here when something changes..?
//debugger doesn't stop here when IsRowChecked is toggled
}
}
}
public class EntityViewModel : ViewModelBase
{
private bool _isRowChecked;
public bool IsRowChecked
{
get { return _isRowChecked; }
set { _isRowChecked = value; RaisePropertyChanged("IsRowChecked"); }
}
}
ViewModelBase
contiene todo paraRaisePropertyChanged
y está funcionando para todo lo demás, excepto este problema.