Are you a startup?
Get BizSpark cloud access
Get up to $3,700 of cloud benefits
Don’t have MSDN?
Here’s cloud access
The launch of Silverlight 3 is coming soon and provides a great way for you to create applications that run outside the browser. With Silverlight 3 they can be run in a browser or it they can be detached from the browser and run from the desktop.
John Papa describes Building An Out-of-Browser Client With Silverlight 3 in his article in MSDN Magazine. He shows you how to create a data-driven application with Silverlight 3 using its out-of-browser features. The sample is a Twitter client that allows sending of new messages and retrieval of a user's friend timeline, replies, and direct messages.
Out-of-browser applications run on the desktop inside a window that is hosted from the sllauncher.exe process. The out-of-browser applications can still access the network and use all of the .NET framework libraries available to Silverlight while they are detached. There are a few limitations for out-of-browser applications, such as not being able to communicate with the browser.
He shows the code, Application.Current.Detach(), used to detach from the browser and how to change appmanifest.xml file in the Silverlight project to allow it to be taken out of browser. He shows how to detect whether the application is running in the browser or offline using the Application.Current.RunningOffline property and the events that are raised when the execution state is changed.
Also he explains how to store data in Isolated Storage when the application is disconnected.
See Building An Out-of-Browser Client With Silverlight 3. The article also includes source code so you can see the context for each call.
Other articles in June’s MSDN Magazine include: