WPF: ContextMenu item bound to a Command is enabled only after invoking the command from another so

Posted by Brad on Stack Overflow See other posts from Stack Overflow or by Brad
Published on 2010-03-12T22:07:00Z Indexed on 2010/03/12 22:07 UTC
Read the original article Hit count: 290

Filed under:
|
|
|
|

I have a ContextMenu whose items are all bound to commands and enable\disable correctly after ANY Command is invoked from another source but prior to, they are all disabled. So if I run the app, all the MenuItems are disabled but if I invoke any of the bound commands from another source (buttons, for instance) they become synchronized with the CanExecute code. I have no idea how to debug this. Any thought would be helpful!?!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about contextmenu