none
Web Browser for microsoft surface

    Question

  • Im tryng to make enable the touch of webBrowser event but its not working. Does somebody have any idea to how to do it and have a sample code .

    Thank you

    Thursday, April 07, 2011 3:10 PM

All replies

  • Thiemoko,

    I would use WPF 4 together with Surface Toolkit on Windows 7. Then you get the touch for free. This isn't an option for Microsoft Surface 1.0, though, since it doesn't send Windows 7 touch events. This will work on Samsung SUR40 for Microsoft Surface, though!

    Generally showing a web browser on Microsoft Surface isn't recommended since a web browser was made for vertical screens and one user at a time. Additionally, the WPF WebBrowser control cannot be rotated because of the technology it's using behind the scenes (WinForms hwnd host).

    Lastly, Chris Cavanagh made a .NET wrapper around Awesomium, a web browser control based on Chromium, and a WPF control that builds on top of that. It supports rotation and scaling, however you would have to implement multi-touch manipulations manually. The control can be found on http://chriscavanagh.wordpress.com/2009/08/25/a-real-wpf-webbrowser/. Compared to the standard WPF WebBrowser this control has a lot worse performance, though.

    Good luck!

    /Sebastian


    Sebastian Hartman Touchtech AB http://www.touchtech.
    Sunday, April 10, 2011 8:50 PM
  • Hi Sebastin

    I am using Surface SDK1.0 and i have downloaded the cjc.chromium browser from the site you given above, I executed that application in Surface unit by putting it in scatterview item control.

    It works fine such zooming,panning,rotating,scaling.

    But, there is no surface touch events it recognizes, for example if you open the  site by giving the url like :http://www.google.com, the chromium browser opens the requested site, but i was unable to do click events,contact events, on textboxes there is no virtual keyboard is coming.

     

    So, how can i able to enable the touch events in the cjc.chromium browser.If you or anybody have idea on this, please share this to me.

     

    Thanks in Advance

     

    Siva D

     

     

     

     

    Wednesday, April 13, 2011 2:55 PM
  • Hi Siva,

    You need to implement the handling of Contact events yourself and use the API provided by the Cjc.Chromium .NET wrapper to communicate with the browser by simulating mouse events.

    Good luck!

    /Sebastian


    Sebastian Hartman Touchtech AB http://www.touchtech.se
    Thursday, April 14, 2011 9:03 PM
  • Hello Siva D,

    I need to replicate same. Need webbrowser for multiple user and need to rotate accordingly. 

    Pls help in this.

    Tuesday, July 30, 2013 5:42 PM