+ All Categories
Home > Documents > [Presentation Title]

[Presentation Title]

Date post: 13-May-2015
Category:
Upload: sampetruda
View: 512 times
Download: 0 times
Share this document with a friend
Popular Tags:
38
Introduction to Silverlight Alan Cobb Independent .NET Consultant Alan Cobb & Associates, Inc. Sacramento, CA alan -at- alancobb -dot- com Friday, March 7, 2008 10:15 am – 11:45 am
Transcript
Page 1: [Presentation Title]

Introduction to Silverlight

Alan Cobb

Independent .NET Consultant

Alan Cobb & Associates, Inc.

Sacramento, CA

alan -at- alancobb -dot- com

Friday, March 7, 2008

10:15 am – 11:45 am

Page 2: [Presentation Title]

About Alan Cobb

• Independent consultant since mid-80s on Microsoft platforms

• .NET, C#, C++, WinForms, WPF• One of directors of the SacDotNet

User Group• http://www.alancobb.com

Page 3: [Presentation Title]

Presentation Overview

• What is Silverlight?– How does it relate to other client-side

technologies? How important is it?

• What can it do?– Feature details and demos

• Silverlight app development walk-walkthrough.– Expression Blend. Visual Studio 2008.

Page 4: [Presentation Title]

What is Silverlight?

• Like Flash:– Browser plug-in: cross-browser, cross-

platform– Animated ads, video, applications (like Flex)– Benefits:

• Write-once-run-everywhere,• Adds functionality not in HTML / AJAX

Page 5: [Presentation Title]

Versions of Silverlight

• v 1.0– RTM in Sept. 2007– Code behind – JavaScript only

• v 1.1 / 2– .NET based– SL 1.1 Alpha introduced in Spring 2007.– SL 2 Beta 1 released at MIX08 in March 2008– RTM maybe Q3-2008? For Olympics?– Code behind - .NET languages C#, etc.– Partial .NET class library

Page 6: [Presentation Title]

SL for Mobile: Schedule

Page 7: [Presentation Title]

SL for Mobile: Weatherbug Demo

Page 8: [Presentation Title]

Inside Silverlight 2

Silverlight 2:

GUI “eye-candy”:

XAML, Layout, Styling, Animation

.NET “plumbing”:

CLR, Base Class Libraries

Page 9: [Presentation Title]

Comparing client platforms

HTML / CSS / JavaScript / AJAX

Desktop:

WinFormsWin32Win16

WPF Silverlight

Web:

Flash /Flex

Page 10: [Presentation Title]

Competing technologies

• Web-based:– Adobe Flash / Flex– “Ajax”: HTML + CSS + JavaScript

• Desktop based “smart clients”– WPF on high end

• 3D, Hardware acceleration

– WinForms: (Mature, proven)

• Desktop-web hybrid (?):– Adobe AIR

Page 11: [Presentation Title]

Silverlight and WPF: Differences

• WPF:– Windows only– Requires 50 / 200 MB .NET 3.x runtime– Steeper learning curve

• Silverlight:– Cross OS, cross browser– Small download (approx. 4 to 5 MB)– Reduced feature set– Sandboxed – Secure but limiting

Page 12: [Presentation Title]

How important is Silverlight?

• 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– The network is the computer

Page 13: [Presentation Title]

What Can Silverlight Do?

Feature Details

Page 14: [Presentation Title]

SL2 Feature Summary:

• GUI system features:– XAML, etc.

• Controls:– What controls come “in the box”?

• Data:– Features related to database-type apps

• Communications:– Web services

Page 15: [Presentation Title]

GUI System Features

• WPF subset• Vector based vs. pixel based

– Scalable – Looks good at multiple resolutions

• Dynamic layouts• XAML – Similar to HTML

– Declarative– Designers and programmers work in parallel

• Rich customization is easier– “Lookless” controls– Styles and templating

Page 16: [Presentation Title]

Non-GUI Features

• More than just “eye-candy”– OpenFileDialog– Threads– Direct cross-domain access rather than

proxied by your server.

Page 17: [Presentation Title]

SL2 Features: Controls

• Controls:– Extensible control base classes– Common controls:

• Textbox, Checkbox, Radiobutton, etc • TabControl, Slider, ScrollViewer, ProgressBar, etc

– Layout controls:• Grid, StackPanel

– Data controls:• DataGrid, etc

Page 18: [Presentation Title]

SL2 Features: Control Source Code

Page 19: [Presentation Title]

SL2 Features: Data

• Data:– 2-way data binding– More LINQ support:

• LINQ to XML• LINQ to Objects

Page 20: [Presentation Title]

SL2 Features: Communications

• Communications:– REST, POX, RSS, and WS-* communication– Cross domain network access (coming)– Sockets (no cross-domain yet)

– WCF? (How much client side?)

Page 21: [Presentation Title]

SL2 Features: Other

• Isolated Storage:– Secure– Size? (100KB, expandable to X?)

• Security– See Perry Birch’s talk from 1:30-3:00

Page 22: [Presentation Title]

Feature Unknowns (?)

• Local client integration?– Read and write local files?– Read local mic and webcam? (Not in Beta 1)

• Depth of class libraries?– Pay-for-play

Page 23: [Presentation Title]

Resources

• Recorded videos:– Sessions from MIX08, MIX07

• Forums: – silverlight.net / forums

• Books: – Adam Nathan’s WPF book– Silverlight 2 books in the pipeline

Page 24: [Presentation Title]

Resource: MIX session videos

Page 25: [Presentation Title]

Features in Action:

Demos

Page 26: [Presentation Title]

Demos: Showcase

Page 27: [Presentation Title]

Demo: Deep Zoom

Page 28: [Presentation Title]

Demo: Home Shopping Network

Page 29: [Presentation Title]

Demo: Indian Fashion Show

Page 33: [Presentation Title]

Demo: 3rd Party Control Vendor

Page 34: [Presentation Title]

Other possible demos

• tafiti:– Search front-end from MS in SL

• Popfly:– Mashup builder from MS in SL

• Silverlight.net / Showcase:

• Seattle PI Reader (WPF currently):– Shows possible future for SL (Rich text)

Page 35: [Presentation Title]

SilverlightDevelopmentWalk-through

Page 36: [Presentation Title]

Silverlight Tools

• Expression Blend:– For graphic designers– GUI builder

• Visual Studio 2008:– For programmers– Includes a more limited GUI builder

Page 37: [Presentation Title]

ScottGu – SL2 Intro Tutorials

Page 38: [Presentation Title]

ScottGu’s SL2 Digg Client


Recommended