Windows Phone 7 WebBrowser controls swallow manipulation?

If I place the WebBrowser control on any page, the page will no longer respond to manipulation events in WebBrowser. Other areas of the page work fine.

This is easily confirmed by overriding OnManipulationCompletedthe page, and then installing the WebBrowser control on the page. Try to scroll through the WebBrowser, but it OnManipulationCompletednever gets called.

I cannot install WebBrowser on IsHitTestVisible=false, because I need to be able to click on links. But I want the page to answer left / right spaces.

Anyone have any bright ideas? Or do you know if this is a bug in the current version?

+5
source share
4 answers

This is a consequence of how we implemented WebBrowser. Touch events are sent directly to the browser engine. Once this happens, Silverlight basically does not work. Unfortunately, I cannot come up with any workarounds that could give you what you want. -Skeets, MS dev

+2
source

I would like to extend what Skeet has already written.

, MS WP7 "", ( ) , . , Pivot Pano, , , . : swipes pans.. !

, , , - , .

, , , GestureService/GestureListener Silverlight Toolkit. WebBrowser , GestureListener - , -, - " ", . , , - :

GestureService.GetListener( targetcontrol ).Flick( myBrowserFlickHandler );

- , - , e.handled = true . : , 7.0, WebBrowser . 7.1 7.5 .

, WebBrowser - notif - webbrowser . , 2 , , .

7.1 7.5 WebBrowser , . , mani- WB GestureListener , WB -, . , . WP7 Pivot control WebBrowser. // , .

: , . 7.1 7.5 SDK/OS/API WebBrowser , , . , , 1-2 .

+4

:

<Grid>
    <phone:WebBrowser Source="http://www.microsoft.com" />
    <Rectangle Fill="Transparent" ManipulationCompleted="HandleManipulationCompleted"/>
</Grid>

, , -, - ...

+1

I think you have a better way to capture manipulation events if it is in WP7.5 Mango, since the browser controls are completely different, and I read from this link

-3
source

All Articles