CommandManager.InvalidateRequerySuggested does not cause a requery on CanExecute in MVVM-Light
问题 I am using MVVM-Light RelayCommand private ICommand myRevertCmd; public ICommand Revert { get { if (myRevertCmd == null) { myRevertCmd = new RelayCommand(RevertExecute, CanRevertExecute); } return myRevertCmd; } } private void RevertExecute() { searchType = SearchType.Revert; SearchStart(); } private bool CanRevertExecute() { return isRevertEnabled; } I have some code that changes the value of isRevertEnabled but the linked button does not change. After some searching I found that you can use