Follow Us

Applications

Group Review

Microsoft Silverlight 4

Microsoft Silverlight 4 vs Adobe Flash 10.1

HTML5, with its promises of plugin free browsing, a 3D graphics and animation API, built-in video and audio tags, an offline data store, and Web Workers to manage long-running background processes, would seem to spell the end of proprietary RIA (rich Internet application) platforms. But the reports of the death of Flash and Silverlight, as the saying goes, have been greatly exaggerated.



Price = Free

The Silverlight platform includes the Silverlight developer runtime and SDK, which are supported on Windows Vista, Windows 7, Windows XP SP3, and Windows Server 2008, along with desktop and browser clients for Windows and Mac OS X. Silverlight 4 Tools for Visual Studio 2010 lets Visual Studio developers target Silverlight projects with WCF RIA Services templates, libraries and tools for managing desktop (out-of-browser) apps. It also includes the F# Runtime for Silverlight and an update for Microsoft Visual Web Developer Express 2010, which is a separate but freely available tool for developing Silverlight and AJAX-based apps.

Microsoft also offers additional apps that enhance Silverlight creation. Expression Blend 4, like Adobe's Flash Catalyst, streamlines prototyping and threading together UI interactions. Expression Encoder 4 is a free tool for encoding audio and video content, although you'll need the Pro version for H.264 encoding and support for IIS Smooth Streaming.

Silverlight's impressive development tools are a cut above those for Flash, and Microsoft's user interface design tools are tightly integrated. However, an RIA platform doesn't stand on tools alone, and Silverlight is a step behind Flash in such areas as native codec support, digital rights management and hardware support.

Improvements on the latter front allow Silverlight 4 developers to incorporate input from webcams and microphones into their apps and to support output to printers, although Silverlight's bitmap-based printing pales in comparison to Adobe's crisp vector-based implementation. Silverlight 4 also ushers in touch support for tablets and smartphones, a new addition to Adobe's offering as well.

Complementing Windows Media DRM 10, Microsoft's latest PlayReady DRM technology secures digital content streams and downloads to Silverlight clients. Like Adobe's Flash Access 2, PlayReady can manage subscriptions and rentals, and it can persist licenses on the client for offline access.

But the most important addition in the Silverlight 4 release is the comprehensive developer support added to Visual Studio 2010. Previously, Visual Studio lacked a design interface for Silverlight, requiring developers to bang out their own XAML (Silverlight's XML-based UI description language) or use Microsoft Expression Blend. In either case, it was a cumbersome process. Visual Studio's new built-in XAML designer lets you drag and drop GUI components into place, while it generates the code in the background. There's no need to pop back and forth between Visual Studio and Expression Blend.

Visual Studio 2010 and Silverlight 4 Tools for Visual Studio 2010 and WCF RIA Services and tools install painlessly and include additional RIA services for SOAP and JSON endpoint mapping. Developers now gain an editable design surface with drag-and-drop data binding and property settings, as well as unified debugging inside a world-class IDE. Further, the ability to cross-compile the same code base for both .Net and Silverlight helps reduce dev cycles.

Under the hood, Microsoft's XAML parser was also given a much needed overhaul. Richer namespace management, direct content encapsulation, better whitespace handling, and error reporting all improve the framework.

Microsoft has a second authoring tool for Silverlight in Expression Blend 4, a user interface design tool akin to Adobe Catalyst. Expression Blend provides a graphical interface to prototype and thread Silverlight UI interactions without ever touching XAML.

Strictly a design tool in version 3, Expression Blend has been elevated to a Visual Studio-type coding facility in version 4 with full IntelliSense support and drag-and-drop element binding that really streamlines the process. I found it both more comprehensive and easier to work in than Adobe Catalyst.

Expression Blend wows with enhanced features like conditional behavior modeling. The new DataStore, a local dictionary for variable and state information, truly reduces coding to mere configuration, helping to close the designer-developer divide.

One of the bigger stumbling blocks for developers in Silverlight 3 was plugging in line-of-business data. Although these hurdles were surmountable via WCF (Windows Communication Foundation) services, Silverlight itself lacked connection options (such as Entity Framework and ADO.Net) available for Web and desktop apps. With WCF RIA Services in Silverlight 4, n-tier apps now have more flexibility in data access, validation, and authentication. By tapping the ASP.Net mid-layer, developers can better manage data-driven apps across the network.

New COM Interop access for trusted applications is a no brainer for Microsoft Office shops looking to use local system libraries. And finally, the the ability of Silverlight 4 applications to draw on Microsoft's MEF (Managed Extensibility Framework), a .Net 4 addition that simplifies pushing code updates, is yet another hallmark of the professional-grade tools that Silverlight developers have at their disposal. Flash developers never had it this good.


Verdict:

For the moment, the decision is between Microsoft's strong developer orientation and Adobe's emphasis on design. For any enterprise project requiring heavy programming or data access, especially in-house applications that would benefit from Windows desktop integration, Silverlight is the top choice. The available codecs are sufficient by today's standards, and in most cases the user interface designs can be ported from Adobe Photoshop or Adobe Illustrator without degradation, although workflow will be somewhat encumbered.



Send to a friend

Email this article to a friend or colleague:

PLEASE NOTE: Your name is used only to let the recipient know who sent the story, and in case of transmission error. Both your name and the recipient's name and address will not be used for any other purpose.

Techworld White Papers

Desktop modernisation

On the one hand, there is the need to keep the existing desktop environment efficient, secure...

Download Whitepaper

Top 10 myths about virtualising business-critical applications

Even though virtualization has brought positive change to enterprise IT over the last decade,...

Download Whitepaper

Aligning CFO and CIO priorities

Forward-thinking organisations are viewing cloud computing as an investment in business...

Download Whitepaper

The new corporate network

Businesses can’t afford to have employee productivity suffer because they cannot use their...

Download Whitepaper

Techworld UK - Technology - Business

Techworld Awards

Techworld Awards 2012
Coming Soon

Opening for submissions 30th April 2012

 

Find out more

Techworld Mobile Site

Access Techworld's content on the move

Get the latest news, product reviews and downloads on your mobile device with Techworld's mobile site.

Find out more...
LogMeIn Rescue

Accelerate Your IT Efficiency

View the latest capacity management resources including whitepapers, videos and news.

Find out more...

Site Map

* *