使用XAML在WPF应用程序(Windows 11)中设置触摸虚拟键盘布局/大小

发布于 2025-01-22 04:25:21 字数 323 浏览 0 评论 0原文

我正在开发WPF(Windows 11)中的应用程序,该应用程序可以由触摸设备使用。在XAML中,可以设置输入范围,从而定义当用户聚焦文本框时自动打开的虚拟触摸键盘的类型(例如,仅数字键盘):

<TextBox InputScope="Number"/>

但是,在Windows 11中,Touch-Keweboard size也可以由用户更改(在:设置&gt;键盘布局&gt;默认/small/split/tranistranica)。

我可以使用XAML或C#,在我的WPF-APP中定义自动打开的触摸键板大小(从而避免用户不断更改它)?

I am developing an application in WPF (Windows 11) that can used by Touch-Devices. In XAML the input scope can be set, thus defining the type of virtual touch keyboard that is automatically opened when the user focus a TextBox (for example, the number-only keyboard):

<TextBox InputScope="Number"/>

However in Windows 11, the Touch-keyboard size can also be changed by the user (In: Settings > Keyboard Layout > Default/Small/Split/Traditional).

Can I using XAML or C#, define in my WPF-APP the Touch-Keyboard size that is automatically opened (thus avoiding the user to constantly change it)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文