Folks, my WPF app has a Menu and a ToolBar with pairs of child items both
bound to the same RoutedUICommand (menu File | Open and the Open button for
example). When the app starts, the menus all show the correct enable states
because as they drop down they seem to call CanExecute.

 

However, the ToolBar buttons don't call CanExecute and remain disabled.
Opening a menu or clicking a button "wakes the button up" and they call
CanExecute and display correctly.

 

I can't figure out if this is some subtle gotcha, or naive coding by me, or
what. How I can I force the ToolBar buttons to immediately refresh their
CanExecute state?

 

Greg

Reply via email to