问题
When you type in wrong data it shows right errors but when you enter right information it doesn't do anything in radio button textbox. It doesn't return any error either.
I need radio button to get the correct year from user and pass it to Years variable.
回答1:
Try this, you have to return false
for wrong year input.
来源:https://stackoverflow.com/questions/36672373/c-sharp-wpf-radio-button-with-textbox-doesnt-work