Is there a way to uncheck all radio buttons at one time?
How do I uncheck all radio buttons at one time?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Is there a way to uncheck all radio buttons at one time?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Sangeetha SRank #212 · 11.4K reputationPosted Dec 2, 2024, 12:06 AM EST
To uncheck all
RadioButtoncontrols at once! SinceRadioButtoncontrols are designed to be mutually exclusive within a group (like in yourGroupBox), you might need to manually set eachRadioButtontoIsChecked = false.Here’s how you can do that in your
xaml.csfile:// Assuming this is part of a method in your code-behind foreach (var child in FirstGroupBox.Children) { if (child is RadioButton rb) { rb.IsChecked = false;// Uncheck each RadioButton } }