Xaml ViewModelBase Adding new Item to the Model

Xaml ViewModelBase Adding new Item to the Model

Old forum URL: forums.lhotka.net/forums/t/9390.aspx


dmnc posted on Tuesday, August 17, 2010

Hi,

the DoAddNew() method in Xaml.ViewModelBase casts the model to IBindingList. BusinessListBase is now ObvservableCollection for WPF. Shouldn't the model be casted to IObservableBindingList instead?

Thanks!

dmnc replied on Tuesday, August 24, 2010

I just want to follow up on this. I had to change the casting as stated to get it running.

RockfordLhotka replied on Tuesday, August 24, 2010

I'll add a workitem for this so it gets looked at.

The code probably needs to check for both interfaces, since it is possible in WPF to use either base class.

Copyright (c) Marimer LLC