I have a ToggleButton
with its IsChecked
property bound to a property using a OneWay binding.
This is by design when using oneway data binding. Add the attached property PresentationTraceSources.TraceLevel=High to your binding and you will see when it gets disconnected. This link describes the problem as well (without offering any solution): Debugging Data Binding in WPF
The way I normally solve it is to use a command for user interaction and code behind to change the control appearance because of some changed properties.