2
Vote

Commands CanExecute does not gray out applicationbariconbutton

description

Hi.
 
I am using this toolkit along with MVVMLight.
 
When binding an bindableApplicationBarIconButton to a RelayCommand with Execute and CanExecute, 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 -- http://stackoverflow.com/questions/10808242/binding-bindableapplicationbariconbutton-isenabled-property-to-relaycommand-cane

file attachments

comments

slyer wrote Aug 10, 2012 at 12:10 PM

Hi CHansen,

Many thanks for your patch, I will integrate it asap !!

wrote Aug 10, 2012 at 6:03 PM

CHansen wrote Aug 10, 2012 at 6:03 PM

Hello slyer.

I can see I uploaded the patch wrong, sorry my first patch ommit.
I have attached the correct format (I think)

And you are so very welcome, great work with the toolkit :)

wrote Feb 14, 2013 at 1:56 AM

wrote May 31, 2013 at 4:01 PM