简体   繁体   中英

Ignore element for touch events in WPF

I have a Window with two Image elements: Back and Front. Obviously, Front has higher Z-index then Back. I also have TouchMove handler on Back. But the event is not triggering when Back is overlapped with Front in the touch point. So, how do I make touch to ignore Front?

If you want touch or click events to fall through to an underlying control, set IsHitTestVisible to false on the Front Image.

Here's more information on how hit testing works on UIElements.

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