Skip to main content
Home Forums Silverlight Programming Programming with .NET - General SL Exit ...
5 replies. Latest Post by StevieWright on November 4, 2009.
(0)
StevieWr...
Member
1 points
57 Posts
11-03-2009 5:14 AM |
Hi .. I've hooked up the exit event in App.xaml.cs.
1. How do I raise the event from another pgm ?
2. What do I use to close the browser window in an orderly fashion, or is it handled by App.Exit() ????
thx ... Steve
microsof...
Contributor
2904 points
566 Posts
11-03-2009 7:02 AM |
StevieWright:2. What do I use to close the browser window in an orderly fashion, or is it handled by App.Exit() ????
You can use JavaScript call from Silverlight application to raise the CloseWindow event of the browser.
11-03-2009 7:10 AM |
google on "silverlight javascript call" & you will get a bunch of samples... :)
11-04-2009 8:47 AM |
Hi .. I was hoping on some kind of answer on how to trigger an event programtically using c# ...
Eg.. my code contains in the App class (app.xaml.cs) :
this.Exit += new EventHandler(App_Exit);
How do I trigger the exit event programatically from another C# program ..???
msalsbery
2066 points
379 Posts
11-04-2009 3:28 PM |
StevieWright:How do I trigger the exit event programatically from another C# program ..???
The Exit event is a notification event. Even if you could raise it from another application, it wouldn't do anything.
The browser is controlling the lifetime of the Silverlight application.
11-04-2009 5:42 PM |
Ok, thx ...