I want to make impossible checking checkbox in WPF (from C# code). Only unchecking would be allowed.
How can I do it?
PS.
Writing event handler on Click event which would immediately uncheck checkbox after checking it is not acceptable.
[edit]
Checkbox should always be enabled, so that user can think that checkbox can be checked. It’s strange but it’s specific programme.
Edit after being informed that the checkbox always has to look to be in an checkable state, even when it’s not. Here is a working example:
The fix was simple. I simply created a copy of the current checkbox template and removed: