C# WPF radio button with textbox doesn't work

2019-09-05 21:57发布

问题:

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.