mvermef wrote:
We have three hundred view model, we can't manually update them!
how about a single void method containing those instead of recreating the wheel in each method you need the notifications to fire?Unfortunately they are not in same view model and every action have a dozen of different notify property changed. they can't grouped in a function
like UpdateToolBar()?
private void UpdateToolBar(){
//send out notifications... etc..}NotifyOfPropertyChange(() => CanFirst); NotifyOfPropertyChange(() => CanLast); NotifyOfPropertyChange(() => CanPrevious); NotifyOfPropertyChange(() => CanNext); NotifyOfPropertyChange(() => CanNew); NotifyOfPropertyChange(() => CanUpdate); NotifyOfPropertyChange(() => CanDelete); NotifyOfPropertyChange(() => CanSave); NotifyOfPropertyChange(() => CanActive);
We have three hundred view model, we can't manually update them!