XAML
XAML.CS
using System.Windows.Controls;
foreach (var child in FirstGroupBox.Children)
{
if (child.Content is "Scientist")
{
RadioButton.IsChecked = true;
}
}
This does not work. How do I set gRBuScientist1 to true?
Jignesh KumarPosted Dec 4, 2024, 12:36 AM
Hello,
Please use StackPanel as below, then it should work,
Add StackPanel in you group box,