最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

hex - Avalonia Textbox limit the hexadecimal character - Stack Overflow

programmeradmin6浏览0评论

I try to limit the input and displayed characters of an AvaloniaUi Textbox to just allow hexadezimal characters. So 0-F. So far I was not able to accomplish by using the various events and handle them in the codebind like TextInput, TextChanged, KeyDown etc. In some cases the eventhandler doesnt even get executet or the e.handle= false/true has no effect and not allowed characters still show up in the textbox. What is the proper and working way to achieve this behaviour?

发布评论

评论列表(0)

  1. 暂无评论