WPF_.NET_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > .NET > WPF

WPF

 2013/10/5 11:40:46  How to force a Command to re-evaluate 'CanExecute' via its CommandBindings  博客园  我要评论(0)
  • 摘要:Nottheprettiestinthebook,butyoucanusetheCommandManagertoinvalidateallcommandbinding:CommandManager.InvalidateRequerySuggested();http://stackoverflow.com/questions/1340302/wpf-how-to-force-a-command-to-re-evaluate-canexecute-via-its
  • 标签:

Not the prettiest in the book, but you can use the CommandManager to invalidate all commandbinding:

CommandManager.InvalidateRequerySuggested();
http://stackoverflow.com/questions/1340302/wpf-how-to-force-a-command-to-re-evaluate-canexecute-via-its-commandbindings
http://msdn.microsoft.com/en-us/library/system.windows.input.commandmanager.invalidaterequerysuggested.aspx
  • 相关文章
发表评论
用户名: 匿名