CanExecute Method still can not work in WPF with latest MvvmLight version on Nuget

Oct 30, 2014 at 8:50 AM
CanExecute Method still can not work in WPF with latest MvvmLight version on Nuget
Oct 30, 2014 at 9:07 AM
Finally, I realized that there's a new public method from RelayCommand Called RaiseCanExecuteChanged().
With this method, I am able to notify UI to update by invoke CanExecute().
Problem solved.
Jan 8, 2015 at 9:43 AM
As far as I know, RaiseCanExecuteChanged is not new at all, it's been there for years. However, you shouldn't need to use it.

The problem you're seeing can be fixed by changing your "using" statement from GalaSoft.MvvmLight.Command to GalaSoft.MvvmLight.CommandWpf. I saw a blog post by the author of this toolkit, explaining why this was necessary, but can't remember where it was. You can probably find it with some searching. However, just adding "Wpf" to the end of the using will fix your problem without you having to call RaiseCanExecuteChanged yourself.