PPT Slides - AlanCobb.com

hurtpotatocreekSecurity

Nov 5, 2013 (3 years and 7 months ago)

58 views

Silverlight Update

Alan Cobb

Independent .NET Consultant

Alan Cobb & Associates, Inc.

Sacramento, CA





Tuesday, October 28, 2008, 6pm

About Alan Cobb


Independent consultant since mid
-
80s on Microsoft platforms


Silverlight, WPF, .NET, C#, C++


One of directors of the SacDotNet
User Group


http://www.alancobb.com


http://www.alancobb.com/blog

Silicon Valley
Code Camp


My presentation:
Silverlight Debugging


4 other Silverlight presentations



Overall:


November 8, 9 (Sat. and Sun.)


Foothill College in Los Altos Hills


115 presentations, 830 registered


Free

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.

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

Versions of Silverlight


v 1.0


RTW: September 2007


Code behind


JavaScript only


v 2


RTW: October 13, 2008


.NET based


Partial .NET class library


Code behind
-

.NET languages C#, etc.


Silverlight for Mobile:


??

Inside Silverlight 2

Silverlight 2:

GUI “eye
-
candy”:

XAML, Layout, Styling, Animation

.NET “plumbing”:

CLR, Base Class Libraries

Comparing client platforms

HTML / CSS /
JavaScript / AJAX

Desktop:

WinForms

Win32

Win16

WPF

Silverlight

Web:

Flash /

Flex

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

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

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


What Can Silverlight Do?


SL2 App Demos

Demos

Video:
2008 Olympics

Game:
Bird Hunt

Demo:
Chess App

DeepZoom:
Hard Rock site

DeepZoom:
Yosemite

SL for Mobile:
Weatherbug Demo

LOB:
Patient Journey

Cloud Services


<Insert examples of Silverlight front
-
ends
for PDC
-
2008 Azure (Red Dog) apps and
services here>

Office Web
: Excel Web

Office Web
: Word Web

Demo:
Silverlight Airlines

Demos:
Showcase

Demo: MS
Download Center

What Can Silverlight Do?

Feature Details

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


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



Non
-
GUI Features


More than just “eye
-
candy”


OpenFileDialog


Threads


Direct cross
-
domain access rather than
proxied by your server.

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

Demo:
Existing standard controls

Silverlight Toolkit

Soon: “
Silverlight Toolkit


Demo:
3
rd

Party Control Library

Demo:
Infragistics for Silverlight

Demo:
DevExpress AgDataGrid

SL2 Features: Data


Data:


2
-
way data binding


More LINQ support:


LINQ to XML


LINQ to Objects

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?)

SL2 Features: Other


Isolated Storage:


Secure


Size: 1MB default, can ask user for more



Security


?

Feature Unknowns (?)


Local client integration?


Not in SL2: Read and write local files?


Not in SL2: Read local mic and webcam?



Depth of class libraries?


Pay
-
for
-
play

Resources


Main site:


silverlight.net


Forums:


silverlight.net / forums


Books:


Silverlight 2 books in the pipeline


50MB CHM help file with SDK


Jesse Liberty blog:
Skills SL devs need to
have

Resource:
MIX session videos

Silverlight

Development

Walk
-
throughs

Now 2 Tools
-

Not Just 1

Now 2 Tools


Not Just 1


Expression Blend:


For graphic designers


GUI builder



Visual Studio 2008:


For programmers


Includes a more limited GUI builder

Expression Blend Tutorial

Expression Blend Tutorial

ScottGu


SL2 Intro Tutorials

ScottGu’s SL2 Digg Client