c# - Windows 8 桌面多点触控 API

标签 c# wpf windows-8 multi-touch

我正在为 Windows 8 桌面模式开发一个 C# 触摸应用程序,但我无法找到最佳方法。我的问题是:我应该使用现有的 Windows 7 Touch API c# 还是有一个新的多点触控 c# API 可用于开发 Windows 8 桌面应用程序?

我知道 Windows 8 对 win7 touch api 有遗留支持,只需要一些见解和反馈(如果这仍然是最好且唯一的方法的话)。

有人以前遇到过这个问题吗?

已编辑:我找到这篇文章:http://software.intel.com/en-us/articles/touch-gestures ,基本上 UIElement 公开了支持触摸操作的方法。也许这就是要走的路。有什么想法吗?

谢谢。

最佳答案

Windows 8 API 有一个基于 WM_POINTER 消息的新 API,请参阅 http://msdn.microsoft.com/en-us/library/hh454916(v=vs.85).aspx

Windows 7 API 有一些缺点,请参阅 http://the-witness.net/news/2012/10/wm_touch-is-totally-bananas/

关于c# - Windows 8 桌面多点触控 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14914548/

相关文章:

c# - 在 C# 上发送带有内容类型应用程序 Json 的 post Https 请求

c# - 不影响列宽的 WPF ComboBox

javascript - 在 JavaScript/HTML5 应用程序中使用现有的 .net 库

c++ - C++/CX 中的 [this] 是什么? (Windows 8)

jquery - 使用 jQuery 模拟 Windows 8 Live Tiles 动画。如何快速开始动画然后缓慢结束?

c# - 使用枚举表示C#中的ID

c# - 如何获得不同的列表?

c# - Azure:无法执行套接字上的操作,因为系统缺乏足够的缓冲区空间或队列已满

c# - WPF 按钮中的图像在运行时不可见

wpf - 在 xaml 中将 View 绑定(bind)到 ViewModel 会引发错误 "Cannot create an instance of"