基于手势的界面的 WPF、XNA 与 Surface
我想知道这 3 个框架/它们的组合中哪一个最适合基于手势的界面(基于触摸或动作识别)?
我在网上看到一些使用 WPF 和 Surface 的说明,但没有具体的说明。
如果已经从事此工作的人能够提出一种方法,我将不胜感激。
I wonder which of these 3 frameworks / combination of them is most suitable for gesture-based interface (based on touch or motion recognition)?
I see online some directions, of using WPF and Surface, but nothing concrete.
I will appreciate if someone who already worked on this can suggest an approach.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您正在谈论针对 Windows 7,WPF 4 +“Surface Toolkit for Windows Touch”是最有效的方法。 WPF 4 内置了用于触摸的低级 API,Surface Toolkit 通过一套针对触摸和手势进行优化的控件对其进行了扩展。请参阅我在 PDC '09 上关于此主题的演示: http://www.microsoftpdc.com/2009/CL27< /a>
If you are talking about targetting Windows 7, WPF 4 + the "Surface Toolkit for Windows Touch" are the most efficient way to go. WPF 4 has built in low level APIs for touch and the Surface Toolkit extends that with a suite of controls that are optimized for touch and gestures. See my presentation on this topic from PDC '09: http://www.microsoftpdc.com/2009/CL27
不知道为什么 Adrman 删除了他的帖子,但我将重新发布他的链接到 Shawn Hargreave 关于 Windows 上的触摸 API 的帖子:
http://blogs.msdn.com/b/shawnhar/archive/2010/09/09/touch-input-on-windows-in-xna-game-studio-4-0.aspx
如果您有兴趣在您的项目中继续使用 XNA,那么肯定还有 Shawn 在他的帖子末尾“触及”的选项。例如,下面是 XNA UK UG 网站上的一篇文章,展示了如何在 Windows 上实现触摸:
http:// /xna-uk.net/blogs/randomchaos/archive/2010/02/10/xna-and-windows-7-multi-touch.aspx
现在,这几乎将您与 API 联系在一起,但它仍然存在原因是你可以重构它,使其更通用,然后最终只使用内置的触摸 API(假设他们在 Windows 上实现触摸,我相信他们会的)。
Not sure why Adrman deleted his post, but I'm going to re-post his link to Shawn Hargreave's post about the touch API on windows:
http://blogs.msdn.com/b/shawnhar/archive/2010/09/09/touch-input-on-windows-in-xna-game-studio-4-0.aspx
If you're interested in still using XNA for your project, there are definitely still options as Shawn "touches" upon in the end of his post. For example, here is an article on the XNA UK UG site that shows how to implement touch on windows:
http://xna-uk.net/blogs/randomchaos/archive/2010/02/10/xna-and-windows-7-multi-touch.aspx
Now, that pretty much ties you to the API, but it stands to reason that you could refactor this so that it was more generic, and then eventually just use the built-in touch API (assuming they implement touch on windows, which I believe they will).