I have very strange problem. Is there any possibility to have these two controls radio
and newRadio
have property IsChecked == true
. Before code in line 6 is executed radio.IsChecked == true
, but after executing code in line 6 radio.IsChecked == false
and newRadio.IsChecked == true
.
Is there any possibility that these two radio buttons will have IsChecked == true
with the same GroupName
?
1. RadioButton radio = new RadioButton();
2. radio.GroupName = "group";
3. radio.IsChecked = true;
4. radio.Name = "name";
5. string xaml = XamlWriter.Save(radio);
6. var newRadio = XamlReader.Parse(xaml);