Hello Screens Example

Topics: Getting Started
Dec 13, 2011 at 5:48 PM


I'm hoping someone can point me in the right direction how to do the following:

I like to modify the Hello Screens example so that when it runs in the browser
it behaves the same as when it runs out of browser for handling unsaved data.

If there is an unsaved client and you navigate to an other URL or even Refresh the
current page the changes to the Client being edited are lost without being warned
unlike it is done when running out of browser.

Any help is greatly appreciated.


Dec 14, 2011 at 2:32 PM

Hi Rob,

I was wondering if you had any suggestion for me on this...



Dec 14, 2011 at 9:26 PM

It's tricky to accomplish that. I believe there is an unloaded event. You can wire to it via JavaScript and push the event back into the Silverlight app. I haven't done this, but I think it should work. Two caveats: you will need to handle that event synchronously and the event *may* not be supported in every browser. You'll have to do some more research into that area.

Dec 14, 2011 at 10:39 PM

Thank You Rob for your help.