This is probably very simple, but Google has not helped me this time.
I have a grid defined in XAML, I want to add radiobuttons programatically. The problem I have right now is that it's adding the radiobuttons on top of each other, but google searches shows others doing the same thing.
RadioButton r1 = new RadioButton(); RadioButton r2 = new RadioButton(); myGrid.Children.Add(r1); myGrid.Children.Add(r2);
Can anyone help? Thanks!
(hmm, no preview button in here..)