I have context menu in XAML with the following MenuItem:
<MenuItem Command="local:MyClass.MyCommand" "/>
I'd like to change the Header of menu item by somehow changing the Text of RoutedCommand. And I'd like to do that in CanExecuteRoutedEventHanlder. If I just change the RoutedCommand Text, Menu items doesn't get updated, I assume that is because menu is already created when CanExecuteRoutedEventHanlder is run.
Basically I need a method to force update from Command to MenuItem.