简体   繁体   中英

How to Simulate a swipe on WP7 Pivot control

I have a WebBrowser control on of the pages of the Pivot control, so this will disable all my gestures on Pivot control since webbrowser is consuming all of them. So I am adding an invisible grid over the browser, So all the actions on the grid should be applied on the pivot control. So I want to know if the default gestureListener for the control can be overriden so that it can be automated.

Any suggestions on how to do it?

This could be problematic if you want to be able to scroll inside the browser control, but you can just disable all gestures from targeting the browser control, then all gestures would just pass through the control and target the pivot instead. You can add IsHitTestVisible="False" to the browser control, or if you programatically created it browserControl.IsHitTestVisible = false;

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