I'm learning Silverlight 3 and, in all of my tests, when I press the browser refresh button, the SL application restarts.
Is there any way to avoid this?
Isolated Storage. You can save you setting, and application state there...
http://silverlight.net/learn/learnvideo.aspx?video=65677
I would still recommend building your silverlight app in a way that saves enough state that a refresh will bring the user back to a meaningful location.
you might want to look at Silverlight3 Navigation : http://www.davidpoll.com/?p=88
If you are having a huge issue with a user refreshing the application, you could attempt to pop a new browser window that has no menubar and tool bar... but you will run into popup blockers...
http://www.webdevelopersnotes.com/tutorials/javascript/creating_opening_new_window_pop_ups_javascript.php3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With