Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用官方 WPF 功能区系统开发一个应用程序,我想在功能区中有一个密码字段。有什么方法可以修改 RibbonTextBox 控件以显示点而不是字符,就像 PasswordBox 一样?提前致谢。
难道你不能只使用 key up 事件,把值从盒子里拿出来,存储在一个变量中,然后用你想要的字符替换它吗?
用户按下键上的“A”,您获取值,将其存储在变量中,然后用“*”替换它。继续这样做,直到他们停止在框中输入?