introducing silverlight 2
DESCRIPTION
Slide deck from my "Introducing Silverlight 2" talk today at NOVA Code Camp SouthTRANSCRIPT
![Page 2: Introducing Silverlight 2](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/2.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/3.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/4.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/5.jpg)
Silverlight Didn’t Come Out in the 80s
![Page 6: Introducing Silverlight 2](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/6.jpg)
How Did We Get Here?
![Page 7: Introducing Silverlight 2](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/7.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/8.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/9.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/10.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/11.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/12.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/13.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/14.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/15.jpg)
What’s New in Silverlight 2
![Page 16: Introducing Silverlight 2](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/16.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/17.jpg)
Deep Zoom Start to Finish
![Page 18: Introducing Silverlight 2](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/18.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/19.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/20.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/21.jpg)
Reading an RSS Feed
![Page 22: Introducing Silverlight 2](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/22.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/23.jpg)
Questions?
![Page 24: Introducing Silverlight 2](https://reader035.vdocuments.us/reader035/viewer/2022062513/55529aa3b4c905e8128b4eb3/html5/thumbnails/24.jpg)
Thanks!