24
Frank La Vigne Applied Information Sciences Tablet PC MVP www.franksworld.com [email protected]

Introducing Silverlight 2

Embed Size (px)

DESCRIPTION

Slide deck from my "Introducing Silverlight 2" talk today at NOVA Code Camp South

Citation preview

Page 1: Introducing Silverlight 2

Frank La VigneApplied Information Sciences

Tablet PC MVPwww.franksworld.com

[email protected]

Page 2: Introducing Silverlight 2

Silverlight: Where We Are Now Uses XAML Runs on Window, Mac and Linux Silverlight Mobile coming later this year Version 1.0 is released 1.1 has been rolled up into version 2

Abundance of breaking changes

Version 2 is currently in BetaRTM later this year

Page 3: Introducing Silverlight 2

Versions of Silverlight

1.0Uses Javascript for interactivitySupports High Def Streaming

2.0Uses .NET for interactivityHas a scaled down CLR

○ Called AG CLR (AG = Silver)○ Runtime of about 4.5 mb

Supports High Def Streaming

Page 4: Introducing Silverlight 2

Javascript Gets No Respect

Many enterprise & component developers ignored version 1 in favor of version 2.

Many firms simply did not want to add more Javascript code to their maintenance load.

The Silverlight 1.0 Blues

Page 5: Introducing Silverlight 2

Silverlight Didn’t Come Out in the 80s

Page 6: Introducing Silverlight 2

How Did We Get Here?

Page 7: Introducing Silverlight 2

Evolution of UX –Text Based UI

• User Experience• Usability – Low• Flexibility – Low• Engagement – None• Performance – Excellent

• Development Experience• Reasonable skillset• Clunky editors and debuggers early on• No Choice

• Deployment Experience• Easy

Era: Mainframe to DOS

Page 8: Introducing Silverlight 2

Evolution of UX – Desktop GUI

• User Experience• Usability – High• Flexibility – High• Engagement – Medium• Performance – Very Good

• Development Experience• Good tools, platforms, languages• Generally needed only two languages: VB/C# and SQL

• Deployment Experience• Very Difficult at first• Easier with .NET

Era: Windows 3.1 to Present

Page 9: Introducing Silverlight 2

Evolution of UX – Web Based UI

• User Experience• Usability – Medium/Low• Flexibility – Medium• Engagement – High• Performance – Poor-Good

• Development Experience• High Effort, High Cost• Cross Browser Problems• Multiple Languages: VB/C#, JavaScript, xml, xsl, SQL, HTML, CSS• Debugging Difficult

•Deployment Experience• Easy

Era: Internet era to Present

Page 10: Introducing Silverlight 2

Evolution of UX – RIA

• User Experience• Usability – High• Flexibility – TBD• Engagement – High• Performance – Good to Excellent

• Development Experience• Good tools, platforms, languages• Generally need only: VB/C#, XAML and SQL

•Deployment Experience• Easy, via browser • Silverlight • Click-once for WPF

Era: Flash v1 to Present

Page 11: Introducing Silverlight 2

The CompetitionRich Internet Applications (RIA) have been

around for a while. For past ten years, Flash has dominated

the marketAdobe Flex is an IDE built on top of Flash

with J2EE & JSP

Sun recently introduced JavaFX

Page 12: Introducing Silverlight 2

RIA in Depth• RIA brings the best of desktop and

client/server applications to the best of web applicationsDeployment via webEnhanced user experience

• Microsoft RIA (WPF and Silverlight)One skillset, language, and toolset, from the

database to the services and sites, through to the client, in the browser or on the desktop○ soon, add phone and mobile devices to the list

Page 13: Introducing Silverlight 2

What’s New in Silverlight 2? Controls & Layout

Actual controls you expected to see in 1.0WPF style skinning and styling

Data BindingWPF style data binding

Framework ChangesNo more Javascript!Managed CodeDynamic Language RuntimeIsolated Storage

Page 14: Introducing Silverlight 2

What’s New in Silverlight 2? (cont’d) Client Networking Stack

WCF basedSocketsCross-Domain Communications

New Packaging & Deployment ModelXAP filesCustomizable splash screens

Deep Zoom / Multi-Scale ImageSea Dragon technology

More!LINQ, Localization, Fonts and much, much more

Page 15: Introducing Silverlight 2

What’s New in Silverlight 2

Page 16: Introducing Silverlight 2

Deep Zoom/Multi-Scale Image

Based on Sea Dragon technology

Uses tiled image pyramids Theoretical max of 4 billion

square pixelsIn real terms, a screen 500 miles

wide

Image size overhead is about 40%

Deep Zoom Image Composer handles of all this for you

Page 17: Introducing Silverlight 2

Deep Zoom Start to Finish

Page 18: Introducing Silverlight 2

Networking• WCF Based Networking Stack• Cross Domain calls allowed

But the target site has to allow it○ Twitter, oddly enough, lacks the cross domain policy

HTTP/HTTPS• Sockets• Proxy Web Page

Page 19: Introducing Silverlight 2

Silverlight Client Access Policy

<?xml version="1.0" encoding="utf-8" ?> <access-policy><cross-domain-access>

<policy><allow-from>

  <domain uri="*" />   </allow-from>

<grant-to>  <resource path="/"

include-subpaths="true" /> </grant-to>

  </policy> </cross-domain-access></access-policy>

http://www.franksworld.com/clientaccesspolicy.xml

Page 20: Introducing Silverlight 2

Flash Cross Domain Policy

<?xml version="1.0"?><!DOCTYPE

cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-

domain-policy.dtd"><cross-domain-policy> <allow-access-from domain="*" /></cross-domain-policy>

http://www.franksworld.com/crossdomain.xml

Page 21: Introducing Silverlight 2

Reading an RSS Feed

Page 22: Introducing Silverlight 2

Learning More Official Silverlight Website

http://www.silverlight.net My Blog

http://www.franksworld.com Pete Brown’s Blog

http://community.irritatedvowel.com/blogs/pete_browns_blog/default.aspx

Silverlight Creamhttp://www.silverlightcream.com

MIX 08 Sessionshttp://sessions.visitmix.com

All these links and more will be posted my blog today.

Page 23: Introducing Silverlight 2

Questions?

Page 24: Introducing Silverlight 2

Thanks!