how do you shut down a silverlight out of browser app? - silverlight

I'm running a Silverlight 4 app with elevated trust out of browser and cannot rely on the DOM or host web page to shut down Silverlight. There is no App.Current.Shutdown() method. How do I shut down a Silverlight app programmatically?

try App.Current.MainWindow.Close();

Related

Launch Windows 8 app with WPF

Is it possible to launch a Windows 8 native application throuh a wpf application? i.e. can I launch the native Camera app using a wpf app?
I'm not 100% sure how it's done in WPF but Windows 8 applications can register with custom protocols. For instance the Mail app is registered with the "mailto" protocol.
If you search under settings for "protocol" you can see which applications are registered with which protocols. Sadly it doesn't look like the Camera app has any custom ones.

Debug silverlight out of browser apps by pressing play

I want to make my startup app the silverlight application and make it run by pressing play.
The problem i have is that I use https and I need the web services to use IIS.
How can i do this?

Silverlight: How to deploy a Silverlight app?

I've just written a Silverlight app and want to deploy it. This app is NOT to be hosted at a website. It is supposed to be a standalone app, just like a standalone WPF app for Windows, but (if I understand Silverlight correctly) it can run on both Windows and Mac.
I've created a .xap file. What do I do with this file to get the app installed? Thanks.
You do need to install it from a website as it still requires the Silverlight environment provided by the browser plugin.
It is the browser plugin that provides the OOB (Out Of Browser) mode.
I gather Adobe Air has the same requirements for apps.
In addition to what #HiTech Magic stated, you can also create a standalone installer for silverlight OOB apps using SLLauncher.exe.

XAP Caching in Silverlight OOB, when using Prism

I have a Silverlight Out Of Browser Application built using Prism Framework. I am using WebClient to download the application module XAPs depending on the user logged in to the application.
Now my Question is will these other XAPs which I am downloading explicitly be cached when running OOB.
If yes where will it be cached, and how can I check for updates like CheckAndDownloadUpdateAsync which I can use only for the main installed XAP.

Silverlight Out of Browser Application making Http Requests through a proxy

When running Silverlight 3.0 in OOB mode, you don't have to worry about any proxy authentication as the browser normally takes care of this.
If I've installed a Silverlight app in OOB mode, is there any way to authenticate against a proxy?
This might be of help:
http://www.silverlight.net/learn/videos/silverlight-4-beta-videos/network-authentication-trusted-network-access/
This doesn't look like it is possible in SL3

Resources