WPF – ICommand: disable-enable button during long process run with Task.Run()
Summary This incident involved a WPF MVVM application where a button bound to an ICommand correctly disabled during a long-running operation, but failed to re-enable once the operation completed—until the user interacted with the UI. The root cause was that the command’s CanExecute state was never refreshed after IsBusy changed. Root Cause The underlying issue … Read more