Kinnara / ModernWpf

Modern styles and controls for your WPF applications
MIT License
4.45k stars 446 forks source link

Problem with style radiobutton, Cannot find resource named 'RadioButtonOuterEllipseFill' #572

Open JMarcuss opened 11 months ago

JMarcuss commented 11 months ago

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?