[英]Mouse.captured windows phone equivalent
I have a MVVM build application, for Windows Phone 8. I have read a bit about it, and found that on WPF you normally use 我有一个用于Windows Phone 8的MVVM构建应用程序。我已经阅读了一些相关内容,并发现在WPF上你通常使用它
Mouse.Capture();
But this is not possible on Windows Phone 8. Instead I used ManipulationStartedEventArgs
. 但这在Windows Phone 8上是不可能的。相反,我使用了ManipulationStartedEventArgs
。 Where I was able to find 在哪里我能找到
ManipulationContainer.CaptureMouse();
Firstly is this the same function as: 首先是这与以下功能相同:
Mouse.Capture();
What I understand is that they bind to a UIElement
, which the user chose ? 我理解的是,它们绑定到用户选择的UIElement
?
Second Part 第二部分
When the mouse has been captured, normally you can invoke: 捕获鼠标后,通常可以调用:
Mouse.Captured
To see if the mouse is captured to a UIElement
. 查看鼠标是否被捕获到UIElement
。 But I have not been able to find the same method inside ManipulationDeltaEventArgs
or ManipulationCompletedEventArgs
. 但是我无法在ManipulationDeltaEventArgs
或ManipulationCompletedEventArgs
找到相同的方法。
Can you tell me how this is done in Windows Phone, and how to release the mouse again. 你能告诉我这是如何在Windows Phone中完成的,以及如何再次释放鼠标。
所以我所做的就是利用操纵事件并在那里制作逻辑以确保移动
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.