Skip to main content

Microsoft Silverlight

Answered Question SL Exit ...RSS Feed

(0)

StevieWright
StevieWr...

Member

Member

1 points

57 Posts

SL Exit ...

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  

microsoft_kc
microsof...

Contributor

Contributor

2904 points

566 Posts

Answered Question

Re: SL Exit ...

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.

 

 

 

 

Remember: Please click on "Mark As Answer", if this answered your query partially or fully.


Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog

microsoft_kc
microsof...

Contributor

Contributor

2904 points

566 Posts

Re: SL Exit ...

google on "silverlight javascript call" & you will get a bunch of samples... :)

Remember: Please click on "Mark As Answer", if this answered your query partially or fully.


Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog

StevieWright
StevieWr...

Member

Member

1 points

57 Posts

Re: SL Exit ...

 

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
msalsbery

Contributor

Contributor

2066 points

379 Posts

Answered Question

Re: SL Exit ...

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.

 

Mark Salsbery
Microsoft MVP - Visual C++

StevieWright
StevieWr...

Member

Member

1 points

57 Posts

Re: SL Exit ...

Ok, thx ...

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities