Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在Windows应用商店上保持手势_C#_Xaml_Windows Runtime_Windows Store Apps - Fatal编程技术网

C# 在Windows应用商店上保持手势

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"

我正在编写我为WindowsPhone8创建的应用程序的Windows应用商店版本

在我的WP8中,我正在几个UIElement中收听保持手势事件。例如:

<Canvas x:Name="MyCanvas"
            Background="Transparent"
            Hold="MyCanvas_holdEvent"
            ManipulationCompleted="MyCanvas_completedEvent"
            ManipulationDelta="MyCanvas_deltaEvent" />

在我的Windows应用商店版本中,我将保持事件更改为保持事件,但在使用鼠标时不会触发此事件。我读过有关手势识别器和鼠标按住的内容,但我真的不知道如何设置它。

查看说明。它解释了如何创建一个InputProcessor,它接受类似画布的框架元素。通过使用鼠标指定HoldingWithMouse,您走在了正确的轨道上。在InputProcessor构造函数中,指定。[编辑:固定链接]始终确保阅读选择标签时显示的说明!