Windows 10 - 如何在没有触摸屏的情况下测试触摸事件?

Big*_*ons 10 c# windows touch

我需要使用触摸事件测试我的Windows应用程序,但没有可用的触摸屏.

Big*_*ons 23

Microsoft.Windows.Simulator.exe

位于 C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\15.0\Microsoft.Windows.Simulator.exe

模拟器具有允许使用鼠标进行基本触摸事件以及捏合缩放和2个手指旋转的模式.它模拟您当前的Windows机器,因此您甚至可以在VS中打开代码,运行您的应用程序,并设置通常仅在使用触摸事件时才会遇到的断点.

模拟器

  • 这东西不复存在了吗? (4认同)
  • Visual Studio 2019 现在是 16.0 (C:\Program Files (x86)\Common Files\microsoft shared\Windows Simulator\16.0\)。该版本对应于安装 UWP 包的 Visual Studio 版本。如果您有 2017 年,则为 15.0。以此类推。 (3认同)
  • @BigHeadCreations 我安装了 Visual Studio 2019 和 2022,并为每个安装了“通用 Windows 平台开发”包,但缺少模拟器。 (2认同)