Xamarin.Forms.InputKit
Xamarin.Forms.InputKit copied to clipboard
Checkbox has both IsEnabled and IsDisabled properties
Describe the bug CheckBox inherits the IsEnabled property while also adding a IsDisabled property, and they are not connected. To make the control behave properly you have to set both. IsEnabled will change the state and affect its appearance through visual state. IsDisabled will make the control unable to be changed.
To Reproduce Steps to reproduce the behavior:
- Create CheckBox control
- Set IsDisabled=“True” and the control won’t change values when clicked, but appears “enabled”
- Set IsEnabled=“False” IsDisabled=“False” and the control will appear disabled but will be clickable
- Set IsEnabled=“False” IsDisabled=“True” and the control will act as expected
Expected behavior Setting the IsEnabled property should set the IsDisabled property internally and vice versa.
Screenshots
Desktop (please complete the following information):
- This happens on all platforms
Smartphone (please complete the following information):
- This happens on all platforms
Additional context Add any other context about the problem here.