✅ WPF Radio Buttons help needed
for a task for school, i need to work with radio buttons.
This is what i have, this works, is this the normal way of using radio buttons or is there a better way?
I don't ask to edit my code, but to like steer me in the right direction or to help me understand the use of radio buttons.
I have little knowledge at this point of the program, so i would like to have feedback in simple ways ^^'
4 Replies
What are you trying to do? Set
stpCategory.IsEnabled = true whenever any radio button is checked, regardless of which one is checked? That seems like an odd thing to do.what this is supposed to do is enable the next part of code so that input can be delivered depending on what radio button is checked.
each button is a different location, does that make sense? and the stpCategory is just all the buttons for input.
One thing you could do is to use the same event handler for all of the
Checked events:
Or even:
Thank you, i will try this as soon as possible!
Thank you very much, you actually helped me alot to understand the concept of coding radiobuttons 🙂