×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    19

    Webbrowser and Hardware back button in Windows phone 7

    My Wp7 app failed to get a certification in the marketplace because I am loading a webpage in a WebBrowser at the startpage of my application and it loads three pages(webpage) one after other and every page has two popups.The testing team in market place are expecting the onbackkeypress (hardware back button) to close the popup whenever its open instead of closing webbrowser.I tried webbrowser.invoke but it failed because while am in second webpage and the popup is open webbrowser.invoke makes the page to reload and comes back to the first webpage.please instruct me!

  2. #2
    Registered User
    Join Date
    Jun 2012
    Posts
    19

    Re: Webbrowser and Hardware back button in Windows phone 7

    If anybody doesnt understand I can explain more?

  3. #3
    Nokia Developer Champion
    Join Date
    Sep 2012
    Location
    Morocco
    Posts
    296

    Re: Webbrowser and Hardware back button in Windows phone 7

    Hello Yogeshg,
    If I understand you're talking about the WebBrowser Control in (Microsoft.Phone.Controls.WebBrowser), you can override the OnBackKeyPress event in your page and juste call the script which closes the Popup with the method InvokeScript

Similar Threads

  1. Changing the phone:WebBrowser control useragent programatically
    By bhanuchandar.k in forum Windows Phone General
    Replies: 6
    Last Post: 2012-12-18, 01:05
  2. Replies: 3
    Last Post: 2011-10-31, 13:37
  3. Replies: 1
    Last Post: 2010-04-25, 23:03
  4. Nokia S60 v5 hardware button override
    By axelabs in forum General Development Questions
    Replies: 0
    Last Post: 2009-12-13, 12:32
  5. Replies: 4
    Last Post: 2007-11-22, 11:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×