locked
WebView DoubleTapped-Tapped event RRS feed

  • Question

  • I have problem with WebView. When I load HTML page (local source) to WebView DoubleTapped event does not work, I can get only events from HTML site. Is there any way to use DoubleTapped  event on WebView after load content? I have to display additional panel after double  click on WebView
    Tuesday, January 21, 2014 4:01 PM

Answers

  • This is a by-design behavior. Basically the HTML page handle all the click events and the input will not bubbling to XAML, for this reason, the tap or double tap event cannot be fired.

    If you need to display an additional panel after double click on the WebView, I think this API could be useful: ScriptNotify event, you could monitor the double click event on HTML by JavaScript and passing the event out to XAML.

    If you are working with 8.0 App, this blog article should help you a lot: http://blogs.msdn.com/b/wsdevsol/archive/2012/10/18/nine-things-you-need-to-know-about-webview.aspx#AN5

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, January 30, 2014 5:07 AM
    Moderator