Silverlight

11,741 views 25 slides Jun 29, 2011
Slide 1
Slide 1 of 25
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25

About This Presentation

Angela Ward gives an Introduction to Silverlight


Slide Content

Introduction to Silverlight
BiTWISE
June 24, 2011

About Angela Ward
•Independent consultant since mid-90s on
Microsoft platforms
•OODB, WinForms, XML, .NET
•Business Analyst, QA Test Lead

Presentation Overview
•What is Silverlight?
•How does it relate to other client-side
technologies?
•How important is it?
•Silverlight app development walk-through

What is Silverlight?
•One word definition: Flash
oBrowser plug-in: cross-browser, cross-platform
oUse case today: Animated ads, Video
oUse case tomorrow: Applications (Flex)
oBenefits: Adds functionality + write-once-run-everywhere
•Why Silverlight not Flash?
•More words: Flash + .NET
•More words: WPF-subset + .NET-subset

This is a big deal
•Once-every-20-years event
•Existing client-side web technology has
reached the peak of its life-cycle
•Fresh start of a new client GUI technology
•Web is where the action is
oThe network is the computer

Comparing client platforms
HTML / CSS /
JavaScript / AJAX
Desktop:
Win16
Win32
WinForms
WPF SilverlightFlash /
Flex
Web:

Competing technologies
•Desktop based “smart clients”
oWPF on high end
3D, Hardware acceleration
oWinForms: (Mature, proven)
•Web-based:
oASP.NET - HTML + CSS
oASP.NET - HTML + CSS + AJAX
oAdobe Flash / Flex
•Desktop-web hybrid (?):
oAdobe AIR

Demo – Yahoo Finance Charts

Demo – Picnik.com Photo Editor

Feature Details

WPF / Silverlight – Positives:
•Vector based vs. pixel based
oScalable – Looks good at multiple resolutions
•XAML – Similar to HTML
oDeclarative
oDesigners and programmers work in parallel
•Rich customization is possible in a well-
designed way

WPF - Negatives
•Windows only
•Requires 50 / 200 MB .NET 3.x runtime
•Steep learning curve

Early Versions of Silverlight
•1.0
oRTM in Sept. 2007
oCode behind – JavaScript only
•1.1 / 2.0
oAlpha introduced in Spring 2007.
oBeta at MIX08 in March 2008.
oRTM maybe Q3-2008.
oCode behind - .NET languages C#, etc.
oPartial .NET class library

Silverlight - Positives
•Lightweight at 4-6 MB, quick download
•.NET based
oWrite in C# or VB.NET
oUse familiar class libraries
•Rich state-of-the-art GUI
oVector based
oAll types of content handled uniformly
•Secure - sandboxed

Silverlight - Negatives
•Not quite here yet
o“Pig in a poke”
•Sandboxing limits functionality
•Conflicting products within Microsoft?

Demo: Silverlight Airlines

Demo: MS Download Center

Demo: 3
rd
Party Control Vendor

Silverlight 5.0 Features:
•Won’t know details until August 2011
•Controls:
•Data:
•Communications:

Silverlight 2.0 Features:
•Controls:
oExtensible control base classes
oCommon controls:
Textbox, Checkbox, Radiobutton, etc
TabControl, Slider, ScrollViewer, ProgressBar, etc
oLayout controls:
Grid, StackPanel
oData controls:
DataGrid, etc

Silverlight 2.0 Features:
•Data:
o2-way data binding
oMore LINQ support: LINQ to XML

Silverlight 2.0 Features:
•Communications:
oREST, POX, RSS, and WS-* communication
oCross domain network access
oSockets

Feature Unknowns (?)
•Local client integration?
oRead and write local files?
oRead local mic and webcam?
•WCF?
•Depth of class libraries?
oPay-for-play

Silverlight
Development
Walk-through

Silverlight Tools
•Expression Blend:
oGUI builder
oGraphic designers
•Visual Studio 2008/2010:
oIncludes a more limited GUI builder
oProgrammers