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

Set a GroupName when creating new WinUI RadioButtons #13611

Merged
merged 3 commits into from
Mar 3, 2023

Conversation

jstedfast
Copy link
Member

Description of Change

This change sets a unique GroupName on every WinUI RadioButton created so that different groups of MAUI RadioButtons are not assumed by WinUI to share the same group and thus prevent IsChecked values from being set properly.

Issues Fixed

Fixes #11418

@hartez
Copy link
Contributor

hartez commented Mar 1, 2023

Will the random GroupNames cause problems later on with the implied grouping by container?

@jsuarezruiz jsuarezruiz added the area-controls-radiobutton RadioButton, RadioButtonGroup label Mar 1, 2023
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Mar 1, 2023
@jstedfast
Copy link
Member Author

It doesn't seem to cause any problems from what I can tell.

@rmarinho
Copy link
Member

rmarinho commented Mar 1, 2023

@jstedfast do you think you can add a device test?

@jstedfast
Copy link
Member Author

What would be the appropriate DeviceTests project to add tests for this to? Core.DeviceTests? Controls.DeviceTests?

@rmarinho
Copy link
Member

rmarinho commented Mar 1, 2023

I would say Core.DeviceTests

@jstedfast jstedfast force-pushed the dev/jestedfa/issue11418 branch from ec56a0b to 6dd1f65 Compare March 1, 2023 23:30
Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome start Jeff thanks

@jstedfast jstedfast merged commit 9949eb3 into main Mar 3, 2023
@jstedfast jstedfast deleted the dev/jestedfa/issue11418 branch March 3, 2023 18:38
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
@samhouts samhouts added the fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-radiobutton RadioButton, RadioButtonGroup fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Radio button loses initial 'IsChecked=True' value when another radio button also has 'IsChecked=True'
6 participants