Exploring Dot Net Stuffs

Out of Browser feature of Silverlight

Out of Browser is one of the great features of Silverlight. This is the feature that allows us to take our Silverlight application and run it like a desktop application. An Out of Browser application can run without a network connection also and if our application uses network resources then we can show some indicator saying “Connection is unavailable”,

We can use isolated storage as an offline cache that we can synchronize with online database when connection is available.

To make the application Out of Browser we have to follow few steps

1. Configuration

Right click on the Silverlight Application

Click Properties

Check “Enable running application out of the browser”

Click “Out-of-Browser Settings…” button.

Enter Window Title (Give proper Window Title this will be shown in the title bar of the Application)

Enter Shortcut Name, Description of the application and select icon for the application.

Let check “Show install menu” be checked. (It will show Install/Uninstall options to user when user right clicks on the application)

That’s it.

2. Installation

Now run the application. You will find an option to install the application by right clicking.

We can have our own button for installing the application also as shown in the picture.

Once if we click on “Install ……………….” Install application dialog will appear.

Check both the checkboxes –> Click ok

Application is installed and you can find an icon on the desktop as well as in Start Menu.

Run the application.

Here we can see the status saying “Application is running out of browser” and Install button is invisible because application is already installed.

3. Uninstall

If we right click on the application, “Remove this application” option will be present for uninstalling the application. Just click it.