InfoQ

News

Silverlight Provides an Out-of-Browser Experience

Posted by Abel Avram on Mar 19, 2009

Community
.NET
Topics
Rich Client / Desktop ,
Rich Internet Apps ,
Silverlight
Tags
Browsers

Silverlight 3 Beta has been announced during keynotes at MIX09. Among other features, Silverlight 3 applications will be able to run outside the browser as desktop applications without an additional plug-in or runtime.

Applications created for Silverlight 3 will be able to use an out-of-browser feature. The application is loaded into the browser for the first time when it runs, but the user will have the option to detach it. As a result, the application will be stored locally along with its metadata. From then on, the application can be started from the desktop like any other local application without the need to run in a browser. This feature enables users to run Silverlight applications offline when they do not have an Internet connection available.

The first concern the out-of-browser feature raises is security. If it runs locally like any other application, will it be able to access all local resources? The response is that these applications still run inside a .NET sandbox and are subject to the same security policies that apply when running in the browser.

Both on PC and Mac computers, the out-of-browser application can be started via desktop or start menu links with just one click. The application will detect when a network connection is present or not and will behave accordingly. For example, the data created or modified by the user will be cached locally until the connection is re-established, then is saved remotely.

Out-of-browser applications are auto updating themselves. When they start, the URI of their origin is checked and the new version is obtained if a network connection is present. That way the user is certain he is using the latest version like in a browser.

The Silverlight 3 Beta documentation on MSDN explains in detail what has to be done to use the out-of-browser feature. Basically, the steps are:

  • Enabling the out-of-browser feature by adding a Deployment.ApplicationIdentity element to the manifest (AppManifest.xml).
  • Adding a menu item or button that calls Application.Detach(). This will take care of the entire installation process.
  • Changing the application to be able to work properly when a network connection is not present.

InfoQ has covered the first days keynotes on Silverlight and other Microsoft technologies showcased at MIX09. More is to come.

Silverlight 3 Out-of-browser by Emil Stoychev Posted Mar 19, 2009 8:49 AM
  1. Back to top

    Silverlight 3 Out-of-browser

    Mar 19, 2009 8:49 AM by Emil Stoychev

    We can't even imagine for a better development of Silverlight as a RIA product.

    Here is a tutorial and a demo of how to build Silverlight out-of-browser application: www.silverlightshow.net/items/Silverlight-3-as-...

Educational Content

Brian Marick on 4 Challenges and 5 Guiding Values of Agile Software Development

Brian Marick takes us through a quick tour of the most important values and challenges to adopting Agile successfully (they aren't the typical challenges and values we hear in the community).

Are You a Software Architect?

The line between development and architecture is tricky. Does it exist at all? Is an ivory tower actually needed? There's a balance in the middle, but how do you move from developer to architect?

Agile – A Way of Life and Pragmatic Use of Authority

The word 'authority' sometimes produces an allergic response in hard-line agilists. Freedom and authority – both are bad if misused and both are good if used in right spirit for a noble cause.

Getting Started with Grails, Second Edition

"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, and Taco Bell are all using Grails. Are you ready to get started as well?

Using ITIL V3 as a Foundation for SOA Governance

Those familiar with only ITIL V2 often scoff at the thought that ITIL could serve as a governance framework for SOA. With ITIL V3, the focus of the framework shifted towards service-orientation.

Adrian Colyer on AspectJ, tc Server and dm Server

SpringSource CTO Adrian Colyer discusses AspectJ, SpringSource's dm Server and tc Server products, OSGi and Scrum.

Adam Wiggins on Heroku

Heroku's Adam Wiggins talks about Rails, Background Jobs, Add-Ons, Ruby, and how Heroku manages to work around Ruby's inefficiencies using Erlang and other languages.

SOA as an Architectural Pattern: Best Practices in Software Architecture

For Grady Booch the foundation of a good architecture is patterns, SOA being just one of many patterns. In this Second Life presentation, Booch attempts to bring more clarity on what architecture is.