Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在用户进行一些修改后,我想从 DelegateCommand 重新触发 canExecute 功能。我该怎么做呢?
必须引发接口 ICommand 的事件 CanExecuteChanged 以重新触发 CanExecute 方法的调用。
在触发事件的 DelegateCommand 中创建一个公共方法“RaiseCanExecuteChanged”。