Feeds

Silverlight 3: closer to what client-side .NET should have been

Microsoft cranks it against Adobe

The Power of One Brief: Top reasons to choose HP BladeSystem

Review Microsoft has released Silverlight 3, less than four months after unveiling the product and just nine months after finalizing Silverlight 2.0. The pace of development is remarkable, reminiscent of the browser wars in the 1990s, with Adobe System's Flash now playing the competitor role.

Why the urgency? It is a fascinating question but for whatever the reasons Microsoft is delivering a vehicle that enables .NET developers to take their code into the browser and cross-platform for Windows, x86 Mac and eventually Linux.

Silverlight is a 5MB browser plug-in, though some controls get downloaded separately on-demand. It does not require the .NET runtime; or more accurately, it includes the .NET runtime, tuned and cut-down for the purpose. This is in contrast to Sun Microsystems' fledgling JavaFX, for example, which is in effect a feature of the Java Runtime Environment (JRE) installed on the desktop.

Microsoft supplies Silverlight for Windows and Intel-based Mac, while the open source Moonlight project is responsible for Linux, though supplemented by media codecs that come directly from Microsoft. Moonlight is still a work in progress. Microsoft's vice president for the .Net developer platform Scott Guthrie says it is "six to nine months behind", though that seems optimistic. Moonlight 2.0, the first version with .NET support, is still in preview.

Dual-player

Silverlight has two roles. First, it is a media client for Microsoft's IIS Media Services, for streaming video. Version 3.0 catches up with the rest of the industry by supporting H.264 video and AAC audio as well as Microsoft's VC-1 and WMA formats. Digital rights management is available, but not yet for H.264 or AAC, which will limit commercial take-up. A strong feature is Smooth Streaming, which varies the bitrate on the fly according to available bandwidth, though this is really a feature of IIS Media Services and works in Silverlight 2.0 as well as 3.0.

The other Silverlight role is as a development platform for Rich Internet Applications (RIAs). You define a user interface in XAML, Microsoft's declarative language, and write code-behind in C# or other .NET languages. Silverlight applications can also interact with the browser DOM. New in Silverlight 3.0 is a navigation framework that lets you map URIs to Silverlight pages, enabling deep linking and browser back-button support.

Interface dsign with Sketchflow

Sketchflow, in the Blend 3 design suite, lets you map and design the Silverlight UI...

Make comments on design in Sketchflow

...while Sketchflow Player lets users run the prototype and add comments

The tools for Silverlight are Visual Studio for coding, and Expression Blend for rich designs. Projects can be round-tripped between Visual Studio and Blend. The current add-in for Visual Studio 2008 has no visual designer. Visual Studio 2010 has proper support, but is currently in beta. For Silverlight 3.0 you need at least beta 2, which is not yet available, while Expression Blend 3 is currently a release candidate.

Blend 3 improves greatly on its predecessor. The two big new features are better Photoshop import, which preserves layers and image elements, and a prototyping feature called SketchFlow. Last year I interviewed Bill Buxton, a design guru who is a principal researcher at Microsoft. He advocates prototyping using sketches, on the grounds that prototypes that look too polished inhibit discussion. His theories are now surfaced in SketchFlow, which is a prototyping tool for Silverlight and Windows Presentation Foundation.

A SketchFlow project starts with a mini site map, where you draw the page flow of the application. You then design the pages, optionally using special "sketch" controls which look home made, and hooking up pages. You can add instant sample data, avoiding the need for a database connection, and add simple interactivity by setting properties.

The next step is to export the project into a SketchFlow package and distribute it for comments. Users can run the prototype in the SketchFlow player, which supports annotation, and return their feedback to the designer. Finally, the designer can export the revised project as a Word document, which includes all the screens ready for working up into a specification. A useful and innovative tool.

Next: behind the scenes

Securing Web Applications Made Simple and Scalable

More from The Register

next story
Whoah! How many Google Play apps want to read your texts?
Google's app permissions far too lax – security firm survey
Chrome browser has been DRAINING PC batteries for YEARS
Google is only now fixing ancient, energy-sapping bug
Do YOU work at Microsoft? Um. Are you SURE about that?
Nokia and marketing types first to get the bullet, says report
Microsoft takes on Chromebook with low-cost Windows laptops
Redmond's chief salesman: We're taking 'hard' decisions
EU dons gloves, pokes Google's deals with Android mobe makers
El Reg cops a squint at investigatory letters
Big Blue Apple: IBM to sell iPads, iPhones to enterprises
iOS/2 gear loaded with apps for big biz ... uh oh BlackBerry
OpenWRT gets native IPv6 slurping in major refresh
Also faster init and a new packages system
Google shows off new Chrome OS look
Athena springs full-grown from Chromium project's head
prev story

Whitepapers

Top three mobile application threats
Prevent sensitive data leakage over insecure channels or stolen mobile devices.
The Essential Guide to IT Transformation
ServiceNow discusses three IT transformations that can help CIO's automate IT services to transform IT and the enterprise.
Mobile application security vulnerability report
The alarming realities regarding the sheer number of applications vulnerable to attack, and the most common and easily addressable vulnerability errors.
How modern custom applications can spur business growth
Learn how to create, deploy and manage custom applications without consuming or expanding the need for scarce, expensive IT resources.
Consolidation: the foundation for IT and business transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.