C# 在Windows应用商店上保持手势
我正在编写我为WindowsPhone8创建的应用程序的Windows应用商店版本 在我的WP8中,我正在几个UIElement中收听保持手势事件。例如:C# 在Windows应用商店上保持手势,c#,xaml,windows-runtime,windows-store-apps,C#,Xaml,Windows Runtime,Windows Store Apps,我正在编写我为WindowsPhone8创建的应用程序的Windows应用商店版本 在我的WP8中,我正在几个UIElement中收听保持手势事件。例如: <Canvas x:Name="MyCanvas" Background="Transparent" Hold="MyCanvas_holdEvent" ManipulationCompleted="MyCanvas_completedEvent"
<Canvas x:Name="MyCanvas"
Background="Transparent"
Hold="MyCanvas_holdEvent"
ManipulationCompleted="MyCanvas_completedEvent"
ManipulationDelta="MyCanvas_deltaEvent" />
在我的Windows应用商店版本中,我将保持事件更改为保持事件,但在使用鼠标时不会触发此事件。我读过有关手势识别器和鼠标按住的内容,但我真的不知道如何设置它。查看说明。它解释了如何创建一个InputProcessor,它接受类似画布的框架元素。通过使用鼠标指定HoldingWithMouse,您走在了正确的轨道上。在InputProcessor构造函数中,指定。[编辑:固定链接]始终确保阅读选择标签时显示的说明!