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 code that changes the value of isRevertEnabled, but the associated button does not change. After some searching, I found that you can use to reevaluate button states
But that does not work. Does anyone have any suggestions?
source share