Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox has both IsEnabled and IsDisabled properties #373

Open
rdurfee opened this issue Aug 25, 2024 · 0 comments
Open

Checkbox has both IsEnabled and IsDisabled properties #373

rdurfee opened this issue Aug 25, 2024 · 0 comments

Comments

@rdurfee
Copy link
Contributor

rdurfee commented Aug 25, 2024

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 rdurfee changed the title Checkbox has. Oth IsEna led and IsSiabaled Checkbox has. Oth IsEna led and IsS Aug 25, 2024
@rdurfee rdurfee changed the title Checkbox has. Oth IsEna led and IsS Checkbox has both IsEnabled and IsDisabled properties Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant