【发布时间】:2011-06-13 22:07:12
【问题描述】:
在用户进行一些修改后,我想从 DelegateCommand 重新触发 canExecute 功能。我该怎么做?
【问题讨论】:
标签: silverlight-4.0 delegatecommand
在用户进行一些修改后,我想从 DelegateCommand 重新触发 canExecute 功能。我该怎么做?
【问题讨论】:
标签: silverlight-4.0 delegatecommand
必须引发接口 ICommand 的事件 CanExecuteChanged 才能重新触发 CanExecute 方法的调用。
在触发事件的 DelegateCommand 中创建一个公共方法“RaiseCanExecuteChanged”。
【讨论】: