InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Silverlight Provides an Out-of-Browser Experience

Posted by Abel Avram on Mar 19, 2009

Sections
Development
Topics
Silverlight ,
Rich Client / Desktop ,
.NET ,
Rich Internet Apps
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
  1. Back to top

    Silverlight 3 Out-of-browser

    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

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.

Beauty Is in the Eye of the Beholder

Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.

Architecting Visa for Massive Scale and Continuous Innovation

John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.

Max Protect: Scalability and Caching at ESPN.com

Sean Comerford unveils ESPN.com’s architecture, what components are used and why, and the current changes the website goes through.

The Seven Deadly Sins of Enterprise Agile Adoption

Are there repeated patterns of failure on Enterprise Agile Enablement efforts? Sanjiv and Arlen discuss Seven Deadly Sins to avoid when adopting Agile in an enterprise.

Questions for an Enterprise Architect

Erik Dörnenburg answers: What is Enterprise and Evolutionary Architecture?, discussing 4 issues: Turning strategy into execution, Ensuring conformance, Where do the architects sit? Buying or building?

Wrap Your SQL Head Around Riak MapReduce

Sean Cribbs explains what Map-Reduce and Riak are, why and how to use Map-Reduce with Riak, and how to convert SQL queries into their Map-Reduce equivalents.