How to maintain the Browser state in windows phone 7? - windows-phone-7

How to maintain the Browser state like zoom level and current content displaying etc in windows phone 7?
I want to display the same content and zoom level when the app is return from tomstoning.
Thanks,
Balaram.

There is no zoom level property on the WebBrowser control for you to be able to persist and then restore. You can store the URL that the user has navigated to and restore that, though.
Jeff Prosise's Real-World Tombstoning in Silverlight for Windows Phone should tell you pretty much everything you need to know about tombstoning.

Related

Simulating scroll gesture on windows phone 7 device without any manual event

How to simulate scroll gesture on windows phone 7 device without any manual event?
I want to scroll a PDF document that has been opened in the Adobe PDF viewer automatically on WP7. How can it be done?
Any views or ideas are welcome.
The Adobe PDF viewer for WP7 is an application. The WP7 architecture does not permit you to control or communicate with any other running application from your own application. Therefore, no, you cannot programmatically scroll a PDF document that the user has opened.
You might want to look at finding a PDF viewer control that you can embed within your application. See this related question:
PDF-viewer for Silverlight for Windows Phone 7 (SilverDox?)

WP7 navigate back from other application automatically

I am trying to automate testing of WP7 apps. In my app, one functionality is CALL; ie; the page changes to WP's phone call page. While testing I want it to automatically come back from the phone call page to simulate a "back" press. I know we can use navigation service to perform back - press however I want to use the back-press on a different page which is not under my control(ie; default phone call page). Is there any way of achieving this?
NO, Current that is not supported in the WP7.
Even if any hacks make it possible also, your application doesn't meet the certification requirements.
So no point, in making this.

Changing the Application Icon, Splash Screen etc through code in Windows Phone

Is it possible to change Application Icon, Splash screen etc through code, My requirement is i need to change these items after reaching a specific date say (jan-21-2012). Is there any provision present change these contents through code?
No, you cannot change these through code. These components of your application are specified via the manifest file. Regarding the Application Icon, you can have a 'live tile' for your application which is dynamic and can be changed. See MSDN:
How to: Create, Delete, and Update Tiles for Windows Phone
Maybe this blogpost about the dynamic splashscreen can help you?
http://windowsphonegeek.com/articles/All-about-Splash-Screens-in-WP7-ndash-Creating-animated-Splash-Screen
I don't think you can change the application icon this way. Do you have to change the icons multiple times through the year? Or is it one rebranding action? In that case i would suggest submit it with the new icons/splashscreen to the marketplace when you want it to change.
Here there are couple of articles about changing Splash screen:
Creating Animated Splash screen in Windows Phone7
Windows Phone 7 better Splash screen
You can extend techincs from articles above and implement your functionality.
Regarding to "Icon" use well known WP feature - Live Tiles (nice links in answers above).

Is there a way to display HTML in an XNA game on WP7

Is there a way to display a browser control over the top of an XNA game on Windows Phone 7?
Basically I need to display some HTML, and then allow the user to return to the game.
So it can be full-screen if need be. It could even involve switching to Internet Explorer, if there's a way to return to the game from IE?
Is this possible?
It was announced that XNA and Silverlight would be available together in the same app starting with Mango update.
That might allow you to get what you're after.
I am not certain It would be nice if we could pop an html screen like we do on the iPhone. I know if you embed an url you can open ie. but as far as I know you can only get back to your game via the hardware back button.
You are not able to directly display HTML content in your XNA application due to the differences in the UI core. You are able, however, to invoke the WebBrowserTask. All you need to do is add a reference to Microsoft.Phone and then add a using statement for Microsoft.Phone.Tasks.

Prevent screen zoom on textbox focus on Windows Mobile 7

On Windows Mobile 7, when a user clicks on a text box before entering some data - the screen usually zooms in to the box and pulls up the keyboard.
Is there a way to prevent the zoom? Or is this a setting on the phone itself?
Thanks gents - but the answer I needed was to include a viewport meta tag that defined the 'user-scalable' parameter as 'no'. Anyone grappling with mobile device cross browser compatibility issues should check this page out - a huge help to me today.
http://davidbcalhoun.com/2010/viewport-metatag
This usually happens in the web browser as the textbox could be tiny when it is clicked. I agree it can be annoying. It does not happen in native apps however.
if you click on a textbox in the app, and it is under the area where the keyboard would be.
It is normal behavior when text box is focused. Your content is moving up when on screen keyboard is appearing.
if you want your content to stay on it's place you can try to use Coding4fun controls(download with sample here: http://coding4fun.codeplex.com/SourceControl/list/changesets). Run Test Application, go to Promts -> Basic input or Advanced input.

Resources