I created a dependency property in the code behind to enable/disable a button during processing.
In the XAML, I bound the IsEnabled property to the dependency property.
The button wasn’t showing the state change. Don’t forget to add the Name property to the window or the property won’t show the state change.