You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It already happens whenever I have a stackpanel and try to add a radiobutton from code-behind.
XAML:
C#:
RadioButton radioButton = new RadioButton();
stackpanel.Children.Add(radioButton);
Whenever I add it throught XAML alone it works, but only when the radiobutton isn't encapsulated within another component (like a groupbox or a stackpanel or a listview).
I want to be able to select multiple radiobuttons, that's why I want them in a listbox/view or a stackpanel.
Can anyone help?
The text was updated successfully, but these errors were encountered:
It already happens whenever I have a stackpanel and try to add a radiobutton from code-behind.
XAML:
C#:
RadioButton radioButton = new RadioButton();
stackpanel.Children.Add(radioButton);
Whenever I add it throught XAML alone it works, but only when the radiobutton isn't encapsulated within another component (like a groupbox or a stackpanel or a listview).
I want to be able to select multiple radiobuttons, that's why I want them in a listbox/view or a stackpanel.
Can anyone help?
The text was updated successfully, but these errors were encountered: