I am not sure if its the Prism issue, but as I am using prism i'll ask here any ways:
I have a button on my Usercontrol that has a command binding t o my View Model SaveCommand and I use the DelegateCommand with both the SaveChanges and CanSaveChanges.
my ViewModel I have the command setup as below
It so happens the CanSaveChanges is called only once at the startup and when some change is done on the DomainContext I would like the button to revalidate it but don't know a way to handle this in a descent way.
To work around the issue, I have hooked in to the context.PropertyChanged
and have to reassign the SaveCommand which allows the button to revalidate, but I was wondering if there was any simplear and better way to handle this?