Silverlight 3 Out of Browser Feature

Posted by: Malcolm Sheridan , on 7/30/2009, in Category Silverlight 2, 3, 4 and 5
Views: 27928
Abstract: The following article demonstrates how to use the out of browser feature in Silverlight 3.
Silverlight 3 Out of Browser Feature
 
One of the most requested features of Silverlight has been an out of browser experience. This is now possible with Silverlight 3. You can configure Silverlight based applications so that users can install them from their host web pages and run them outside the browser. When an application is properly configured, Silverlight displays an install option on its right-click menu. You can also provide your own UI for installation to supplement or replace the right-click option. This article will focus on how to set up your application so that it can be installed and ran outside of the browser.
To begin with open Visual Studio 2008 and choose File > New > Project > Silverlight > Silverlight Application. To enable the application to run out of the browser, all you need to do is right click on the project and choose Properties. The project properties window will appear. You must select Enable running application out of the browser:
New_Project
Configuration
To configure the out of browser settings, click the Out-of-Browser Settings button:
Browser_Settings
The screen above allows you to set a title, width and height, a shortcut name that the user can recognize on their desktop or start menu and an icon. The icon you add will be the icon associated with the shortcut. Click OK to save your changes.
Once you have configured your settings, an OutOfBrowserSettings.xml file is created. This is the file that will be compiled into the xap file when you deploy your Silverlight application:
/OutOfBrowser_XML
Installation
To install the application run your project. Right click the application and choose Install Hello world! Onto this computer. This causes the following dialog box to appear, which enables the user to specify the location of the installation:
Install_Application
Uninstall
To uninstall the Silverlight application you must launch the application. While its running, right click and choose Remove this application:
Remove_Appplication
It is important to realise that even though the application is running out of the browser, the application is still subject to the same security sandbox restrictions as ordinary web applications. This is a really cool feature of Silverlight 3. In some upcoming articles I’ll focus on writing Silverlight applications that make use of this feature.
The entire source code of this article can be downloaded over here
If you liked the article,  Subscribe to the RSS Feed or Subscribe Via Email

Malcolm Sheridan is an independent contractor who has been working with Microsoft technologies since VB4. Malcolm has worked with .NET since its inception and thoroughly enjoys ASP.NET.

This article has been editorially reviewed by Suprotim Agarwal.

Absolutely Awesome Book on C# and .NET

C# and .NET have been around for a very long time, but their constant growth means there’s always more to learn.

We at DotNetCurry are very excited to announce The Absolutely Awesome Book on C# and .NET. This is a 500 pages concise technical eBook available in PDF, ePub (iPad), and Mobi (Kindle).

Organized around concepts, this Book aims to provide a concise, yet solid foundation in C# and .NET, covering C# 6.0, C# 7.0 and .NET Core, with chapters on the latest .NET Core 3.0, .NET Standard and C# 8.0 (final release) too. Use these concepts to deepen your existing knowledge of C# and .NET, to have a solid grasp of the latest in C# and .NET OR to crack your next .NET Interview.

Click here to Explore the Table of Contents or Download Sample Chapters!

What Others Are Reading!
Was this article worth reading? Share it with fellow developers too. Thanks!
Share on LinkedIn
Share on Google+

Author
Malcolm Sheridan is a Microsoft awarded MVP in ASP.NET, a Telerik Insider and a regular presenter at conferences and user groups throughout Australia and New Zealand. Being an ASP.NET guy, his focus is on web technologies and has been for the past 10 years. He loves working with ASP.NET MVC these days and also loves getting his hands dirty with jQuery and JavaScript. He also writes technical articles on ASP.NET for SitePoint and other various websites. Follow him on twitter @malcolmsheridan


Page copy protected against web site content infringement 	by Copyscape




Feedback - Leave us some adulation, criticism and everything in between!
Comment posted by Paul on Monday, November 23, 2009 1:12 AM
Thanks a bunch for the information on how to uninstall Silverlight out of browser applications.  After reading elsewhere to, "right-click the application and select Remove this application" I was trying to right-click the application SHORTCUT...not actually launching the application itself.  Thanks for straightening me out...
Comment posted by Malcolm Sheridan on Wednesday, December 30, 2009 1:09 AM
@Paul
Glad it helped you out :)
Comment posted by Lauro on Thursday, June 13, 2013 1:20 PM
Thanks for the code.

<a href="www.custodiestensi.it">Nik</a>
Comment posted by Rottweiler on Thursday, June 13, 2013 4:22 PM
Thanks.

http://www.custodiestensi.it

Categories

JOIN OUR COMMUNITY

POPULAR ARTICLES

C# .NET BOOK

C# Book for Building Concepts and Interviews

Tags

JQUERY COOKBOOK

jQuery CookBook