I've found a strange thing about RadioButton in the WPF. I can put radio button to one component and select another component at the same time. Like on the screenshot.
How can I fix that?
If I don't select any component like in the second string, then next code give me an error:
MessageBox.Show(ListBox1.SelectedItem.ToString());