I’ve got a listbox with some data (using ItemTemplate and StackPanel) in a Pivot. Currently, clicking on an item opens WEbBrowserTask going to certain url in item. Would it be possible to open the web page in the current Pivot page, and have it close and again show the listbox when back button is pressed?
I’ve got a listbox with some data (using ItemTemplate and StackPanel) in a Pivot.
Share
Use the
WebBrowsercontrol (initially invisible) to display the web page pointed to by the URL. Also, hook into theBackKeyPressevent of the page.When the user clicks an item show the
WebBrowserand open the URL using it. Then, when they press the back key, cancel navigation within theBackKeyPressevent handler, and make theWebBrowserinvisible.