Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How maintain the Silverlight application state aftwer the user press the browser refresh button?

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?

like image 384
João Vieira Avatar asked Jul 28 '09 13:07

João Vieira


1 Answers

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

like image 84
BigBlondeViking Avatar answered Sep 19 '22 22:09

BigBlondeViking