This project is read-only.

CanExecute returns false, but button is not grayed out

May 31, 2012 at 9:07 AM

When binding an bindableApplicationBarIconButton to a RelayCommand(MVVMLight) with Execute and CanExecute methods, then even though CanExecute returns false, the icon is not grayed out. 

It does work, since Execute is not called if the iconButton is pressed while CanExecute returns false, but it is not grayed out.

I've also made a StackOverflow post about this issue with an example --


Is this a bug, or what is the background for choosing this implementation?