490 likes | 709 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
E N D
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 Desktop: Web: Silverlight Flash / Flex WPF WinForms Win32Win16 HTML / CSS / JavaScript / AJAX
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
Cloud Services • <Insert examples of Silverlight front-ends for PDC-2008 Azure (Red Dog) apps and services here>
Feature Details What Can Silverlight Do?
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
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
Now 2 Tools – Not Just 1 • Expression Blend: • For graphic designers • GUI builder • Visual Studio 2008: • For programmers • Includes a more limited GUI builder