是否可以在 Silverlight 中模拟击键(类似于 SendKeys)?

发布于 2024-07-22 22:25:12 字数 72 浏览 2 评论 0原文

是否可以构建一个具有上下文感知的嵌入式屏幕键盘的 Silverlight 应用程序(例如,仅当文本框处于焦点时屏幕键盘才会出现)。

Is it possible to build a Silverlight application with an embedded on-screen keyboard that is context aware (e.g. on-screen keyboard appears only when a textbox is in focus).

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

岁月无声 2024-07-29 22:25:12

是的,但您需要额外的 javascript 来显示\隐藏 silverlight 应用程序。

例如:用户聚焦密码文本框,JavaScript 会触发显示您的应用程序。 单击应用程序的虚拟键盘会引发编辑文本框的 JavaScript。

华泰

Yes, but you need additional javascript that will show\hide the silverlight app.

For example: User focuses password textbox, javascript fires showing your app. Click on app's virtual keyboard raises javascript that edits textbox.

HTH

猫九 2024-07-29 22:25:12

我一直在寻找同样的东西,所以我创建了一个可以附加到文本框和其他控件的虚拟输入键盘 - 看看这里:

http://www.orktane.com/Blog/post/2009/11/09/Virtual-Input-Keyboard -Behaviours-for-Silverlight.aspx

希望有所帮助,不过晚了 5 个月:)

I was looking for the same thing, so I created a Virtual Input Keyboard that can attach to Textboxes and other controls - have a look here:

http://www.orktane.com/Blog/post/2009/11/09/Virtual-Input-Keyboard-Behaviours-for-Silverlight.aspx

Hope that helps, 5 months late though :)

如梦初醒的夏天 2024-07-29 22:25:12

Andrius Mudinas 开源了一个优秀的 Silverlight 屏幕键盘:

http ://www.mudinas.com/post/2009/07/10/Silverlight-Keyboard-Control.aspx

我们已将其集成到我们自己的 Silverlight 应用程序中。 请记住将键盘样式从 App.xaml 复制到项目的 App.xaml。

您可以连接到 KeyPressed 事件。

Andrius Mudinas open sourced an excellent Silverlight on-screen keyboard:

http://www.mudinas.com/post/2009/07/10/Silverlight-Keyboard-Control.aspx

We've integrated this into our own Silverlight app. Remember to copy the keyboard styling from their App.xaml to your project's App.xaml.

You can wire into the KeyPressed event.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文