[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 623
  • Last Modified:

silverlight shutdown command

I am converting an app from wpf to silverlight.  The shutdown command in WPF is:

System.Windows.Application.Current.Shutdown();

Anyone know the command in Silverlight?

0
dchau12
Asked:
dchau12
1 Solution
 
DeathraceCommented:
hei,
sorry, we dont' have the command in Silverlight.
do you want to close a silverlight control..or.. what are u looking for.
0
 
dchau12Author Commented:
I am trying to close down the app
0
 
unmeshdaveCommented:

If you want to close the browser window, put the following code where you want to close,

HtmlPage.Window.Invoke("CloseWindow");

and put a CloseWindow javascript function on your page:

function CloseWindow()
{
    window.close();
}
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now