WPF TextBox输入限制,只能输入数字,字母
摘要:
private void Tb_PreviewKeyDown(object sender, KeyEventArgs e) { bool isNumber = e.Key >= Key.D0 && e.Key <= Key.D9 || e.Key >= Key.NumPad0 && e.Key <= 阅读全文
posted @ 2020-06-02 11:28 HotSky 阅读(1715) 评论(0) 推荐(0) 编辑