Is there a way to create Numberic Textboxes using WPF xaml code?

后端 未结 1 1658
情歌与酒
情歌与酒 2021-01-25 22:37

I am new to WPF. I need to create textboxes which is only accept digits. Not accepted any special characters, letters .

And the important thing is ,

相关标签:
1条回答
  • 2021-01-25 23:19

    No, it's not possible because XAML is a markup language. It has no support for distinguishing between digits and other type of characters.

    You should use a programming language such as C# to implement this kind of logic.

    0 讨论(0)
提交回复
热议问题