I have a user control with a button bound to the NavigationCommands.RefreshCommand. The handler for the command is the parent control. The handler's CanExecute looks like this:
e.CanExecute = !IsConnecting; // IsConnecting is a Dependency Property
For some reason, the button will remain disabled until I click on the window.
If I click the button and get it to execute (which causes IsConnecting to temporarily be set to true) it will then disable the button correctly, but won't enable the button until I cause another event in the window (eg. a click).
Are there any tools or tricks I can use to try debug the CanExecute handler of a command which is bound to a button?