C# WPF radio button with textbox doesn't work

≡放荡痞女 提交于 2020-01-06 17:46:07

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!