Click here to Skip to main content
Click here to Skip to main content

Choose the way to Create a Silverlight Out-of-Browser Application

By , 22 Oct 2010
 

In all of my earlier articles on Silverlight Out-of-Browser (OOB) applications, I demonstrated how to create the OOB application using Visual Studio. There are plenty of steps you have to follow there. Today, I found another way to change the settings for it.

image

In this post, I am going to discuss about both the processes, and at the end tell me which one is best & simple.

Visual Studio Way to Create OOB Application

Open your Silverlight Solution in Visual Studio. Now in the Solution Explorer, right click on the Silverlight project and from the context menu, click on properties as shown in the below screenshot:

image

This will open the below project properties Window inside the Visual Studio IDE. In the “Silverlight” tab, you will see a check box with the text “Enable running application out of browser”. Once checked, your application will now support running Out-of-Browser.

image

Once you select the check box, it will enable the “Out-of-Browser Settings…” button. If you want to set the Elevated Trust mode for your Silverlight OOB application, click on that button.

image

This will open the “Out-of-Browser Settings” dialog on the screen. At the bottom of the settings page, you will see “Require elevated trust when running outside the browser” check box.

image

Select the checkbox as shown below to mark your application trusted. Now click “ok” and save your project. Run your application now outside the browser window in fully trusted mode.

image

Those were the steps to create a Silverlight OOB application in Visual Studio. Now, we will discuss the same using Expression Blend.

Expression Blend Way to Create OOB Application

Open your Silverlight Solution in Expression Blend. Now go to “Project” menu –> “Silverlight Project Settings” –> “Enable Application Outside Browser”.

image

That’s it to create a Silverlight OOB application. Blend will change the project settings for you. If you now go to the same menu, you will see that has been checked, means, your application supports running outside browser. If you don’t want, uncheck the menu settings there.

image

The other menu item “Preview Application Outside Browser” by default gets selected once you enable OOB. This makes sure that, when you run the application from Blend, it directly starts in outside browser window.

image

If you want to set elevated trust for your application, just check the “Application Requires Elevated Permission” from the same menu path as shown below: 

image

Wuhu! Your Silverlight application now supports running outside browser in fully trusted mode.

Summary

In this post, I described both the steps using Visual Studio & Expression Blend. Now it is your choice to decide which is best for you. Hope, you liked this comparison and will help you. Please don’t forget to share your thoughts, suggestions etc. I appreciate your feedbacks always.

Cheers… Smile


License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

_ Kunal Chowdhury _
Software Developer
India India
Member
Kunal Chowdhury is a Microsoft MVP (Most Valuable Professional) in Silverlight Technology, a Codeproject MVP & Mentor, DZone MVB (Most Valuable Blogger), Speaker in various Microsoft events, Author, passionate Blogger and a Software Engineer by profession.
 
He is currently working as a Software Engineer II in an MNC located at Pune, India. He has a very good skill over XAML, C#, Silverlight and WPF. He has a good working experience in Windows 7 application (including Multi-touch) development too.
 
He posts his findings in his technical blog. He also writes for SilverlightShow and Codeproject portal. Many of his articles were highlighted as "Article of the Day" in Microsoft sites.
 
He also has another website called Silverlight-Zone.com where he posts article links on Silverlight, Windows Phone 7 and XNA accumulated from various web sites to help the community grow on specified technologies.
 
You can reach him in his Blog : http://www.kunal-chowdhury.com
He is also available in Twitter : http://twitter.com/kunal2383

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questionparameters? PinmemberMember 219135126 Oct '10 - 7:33 
GeneralMy vote of 5 PinmemberAbhinav S23 Oct '10 - 18:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 23 Oct 2010
Article Copyright 2010 by _ Kunal Chowdhury _
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid