Share via


Lab 5 – Building an Out-of-Browser Application

Silverlight started off as a browser plug-in. Since then, Silverlight has emerged as a client platform technology that not only includes browser based applications, but is now a desktop platform as well. This lab is designed to guide Winforms or desktop developers through the process of developing a desktop application in Silverlight.

In the lab you'll create a Silverlight web browser. It will truly be a desktop application. Along the way you'll learn how to enable Silverlight out-of-browser, detect the context the application is running in, customize the window, and how to interact with Microsoft Excel.

You'll start by using an existing application and enabling the out-of-browser feature. Next, you’ll determine if the application is running on the desktop or in the browser. You’ll then customize the look of the application. Finally you’ll learn how to interact with Microsoft Excel. The Silverlight application that you'll create is shown next:

You will benefit from this lab if:

  • You are coming from a Winforms background and are familiar with developing for the desktop and not the web.
  • You’re looking to develop Desktop applications with Silverlight
  • You’re interested in knowing the capabilities of Silverlight Out-of-Browser.

You will learn:

  • How to enable Out-of-Browser.
  • How to create custom windows.
  • How to manipulate the application window from code.
  • The possibilities of Elevated Privileges.
  • How to call external applications with the AutomationFactory.

Business Requirements for the Silverlight application include:

  • Enabling Out of Browser
  • Display the correct interface based on the context the application is running under
  • Prompt the user to install the application from the web to their desktop
  • Enable elevated privileges
  • Customize the look of your application
  • Enable the exporting of data to Office products

Estimated Time 45 Minutes