WPF - How to force a Command to re-evaluate 'CanExecute' via its CommandBindings

前端 未结 6 1255
礼貌的吻别
礼貌的吻别 2020-11-29 17:47

I have a Menu where each MenuItem in the hierarchy has its Command property set to a RoutedCommand I\'ve defined. The as

6条回答
  •  抹茶落季
    2020-11-29 17:51

    This is what worked for me: Put the CanExecute before the Command in the XAML.

提交回复
热议问题