【发布时间】:2011-09-13 12:10:40
【问题描述】:
我在 WPF 应用程序中有一个 PasswordBox,它在没有键盘的触摸屏上使用。这是一个问题,因为单击 PasswordBox 时没有显示虚拟键盘图标。
我觉得它应该与 InputMethod 及其 IsInputMethodEnabled 属性有关,但以下仍然不起作用:
<PasswordBox InputMethod.IsInputMethodEnabled="True"/>
是否可以强制弹出虚拟键盘?
作为一种解决方法,我创建了一个自定义虚拟键盘,可以直接修改 PasswordBox.Password..
【问题讨论】:
标签: wpf xaml .net-4.0 passwords