Xamarin.Forms.InputKit icon indicating copy to clipboard operation
Xamarin.Forms.InputKit copied to clipboard

Checkbox has both IsEnabled and IsDisabled properties

Open rdurfee opened this issue 6 months ago • 0 comments

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:

  1. Create CheckBox control
  2. Set IsDisabled=“True” and the control won’t change values when clicked, but appears “enabled”
  3. Set IsEnabled=“False” IsDisabled=“False” and the control will appear disabled but will be clickable
  4. 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.

rdurfee avatar Aug 25 '24 03:08 rdurfee