How to maintain state of silverlight application on browser back button? - silverlight-4.0

I have silverlight control hosted on web page. When I explore this control and go to some other web page, when I come back to same page using back button I want to maintain the same state of the control as before I went to another page.
How this be done?
Thanks in advance.
Regards,
-Shwetank

You can use IsolatedStorage to create persistent data for your control in client's computer.

Related

Back button overriding in windows phone for webbrowser/view

I am implementing a simple webview application with only one url. I have over ridden back button function for webview navigation (which is working fine). Now my app has only one screen with webview and user visits the links inside main url and navigates using back button.
I want to know that, What is Microsoft Certification Policy as my application has only one screen so should it Close when user press back button anytime? Or Microsoft allows implementing of webview with over ridden back button functionality.
If question is still unclear Kindly tell me. I'll explain more but I need to know answer to this question.
Thanks.
You shoulld be fine, I have submitted applications which works like that myself which passed certification.
As long as the application quits when pressing the back button when there is no more "history" for the webbrowser control it shouldn't be a problem because the user still get the experience of moving "backward" in his use and can finally quit the app.
Regarding WebBrowser control and content of the app please consider this requirement:
"Your app and metadata must have distinct, substantial and legitimate content and purpose. Your app must provide functionality other than launching a webpage."
So, the application's sole functionality must not be only to launch a website.
This is not releated to back button but very important thing that need to be considered!
Best regard

How can I have my own settings menu in my windows application?

I have created a windows service to perform certain task on regular basis. Now I want users to change few parameters by themselves. So user should be able to right click on the service and click on settings and a form should appear. On save button all the values should be saved to the app.exe.config file.
Does anyone have any tutorial or any reference website?
1) Users NEVER right click on a Windows Service. WS are by definition programs that run in background.
2) You can create a service controller, a windows form application that interacts with the service and sends commands like pause, start, stop, etc. Implement your user interface in such controller.
You can start reading this post:
http://msdn.microsoft.com/en-us/library/d56de412(v=vs.100).aspx
Good luck!

Show webpage with no URL bar, navigation bar, etc

I'm working on a vb.net web application and want to make it to where when someone puts in a url into the browser or when someone clicks on a shortcut, a new browser window is opened but there is no back or forward, no refresh, no navigation bar, etc. Does anyone know how to do this or if it's even possible? I just want the browser shell essentially. Thanks.
I would advice against this - the browser is the users domain, don't mess with it. Are there any particular reasons for your choice of functionality?
Any ways to make this possible will be based on Javascript, and this can always be disabled by the user.
You can do this in javascript code behind cannot open new browser windows. Take a look here.
you can do this with javascript using the window.open() method.

VB.Net Web Browser control - how do you handle popups?

I have a large project in Vb.net which drives a web browser control around. What's the best, and easiest, way to manage browser pop ups? Note, I am not just looking to cancel or close them. I need to manage them just like the main window.
Check out the NewWindow/NewWindow2/NewWindow3 events:

Bring Silverlight pop up to the front

we are popping up a childwindow in a timer.we would like to show the popup on top of all other applications if the user is working on any other apps.Is there any way to get any user notification that the popup is behind ? Any way to bring the silverlight app to the front ? we are using silverlight 4.0
Not possible.
I think your only hope is notifying them with a sound.