简体   繁体   中英

WPF/WinForm not receiving touch events

I'm trying to create a fullscreen WPF application and trying to implement a android like navigation drawer. 在此处输入图片说明

So in order to accomplish this I have to detect a swipe coming from offscreen, just like the Windows 8 charm bar. 在此处输入图片说明

But windows does not sent any touch/mouse events to the application if the swipe didn't start on the touchscreen (global hook isn't working too).

How am I able to detect those swipes starting offscreen just like Windows does it for the charm bar?

Just if it matters I'm using a Surface pro 3 with Win 8.1

You need to add manipulation events on your screen/window to detect if any swipe event takes place on your screen. There is no way that you directly get that event offscreen. Referring to this link may help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM