基于全局指针的触摸输入处理(无论UIElement) [英] Global pointer-based touch input handling (regardless of UIElement)

查看:99
本文介绍了基于全局指针的触摸输入处理(无论UIElement)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正试图以这种方式处理触摸点转换 -

I'm trying to handle touch points translation this way -

CoreWindow window = CoreApplication.MainView.CoreWindow;
    (...)
window.PointerMoved += _pointerMoved;



其中_pointerMoved是

where _pointerMoved is

private void _pointerMoved(object sender, PointerEventArgs e)
{
    Debug.WriteLine(".");
}



我用VS 2013创建的hub-app示例测试了它(使用Device)。看起来像_pointerMoved只适用于Items页面,但不适用于主页面。我可以全局使用触摸输入吗?我认为CoreWindow将帮助我处理所有输入,无论
的控件如何。

I've tested it with the hub-app sample created by VS 2013 (using Device). And looks like _pointerMoved works only on Items pages, but not on the main page. How can I work with touch input globally? I thought that CoreWindow will help me handle all input regardless of controls.


MSDN说 

MSDN says that 

CoreWindow.PointerMoved

是仅适用于本机应用程序(WP8-8.1)。这是问题吗?如何在Win8.1和WP8.1上处理全局触摸输入

通用解决方案中的应用程序。

推荐答案

嗨Nerthym,

Hi Nerthym,

这似乎是一个关于Windows Phone开发的问题,我将它移到Windows Phone开发论坛,在那里你可能会得到更好的支持。

It seems to be a question about Windows Phone Development, I'm moving it to Windows Phone Development forum where you may get better support.

感谢您的理解。


这篇关于基于全局指针的触摸输入处理(无论UIElement)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆