Get Selected Radio Button in a Group (WPF)
问题 I have a ItemsControl in my program that contains a list of radio buttons. <ItemsControl ItemsSource="{Binding Insertions}"> <ItemsControl.ItemTemplate> <DataTemplate> <Grid> <RadioButton GroupName="Insertions"/> </Grid> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> How do I find the selected radio button in the group Insertions in a MVVM manner? Most of the examples I have found on the internet involve setting individual boolean properties that you bind the IsChecked property