I have a WebBrowser in my application, I need to know where the position of primary touch is in the screen.
this event not fired in the WebBrowser:
Touch.FrameReported += new TouchFrameEventHandler(Touch_FrameReported);
and also this:
GestureService.GetGestureListener(webBrowser1);
How I can do this?
You can add JavaScript function to your page that will call window.external.notify
to send touch position from WebBrowser
to your C# code. You will need to subscribe to WebBrowser.ScriptNotify
event and allow JavaScript execution in WebBrowser
.