Silverlight 2 - Reflection IT

Download Report

Transcript Silverlight 2 - Reflection IT

Silverlight 2
Fons Sonnemans (Trainer)
Reflection IT
[email protected]
http://www.reflectionit.nl
Microsoft .NET
Web
Web
Desktop
Desktop
media & RIA
Microsoft Silverlight is a cross-browser,
cross-platform implementation of .NET for
building and delivering the next generation of
media experiences & rich interactive
applications for the Web.
Microsoft answer to Adobe Flash
Timeline, Packaging and Platforms
Platforms & Browsers (Microsoft support)
IE 6.0+
FireFox 1.5+
Windows
Vista, XP, 2003, 2000*
Safari 2.0
Mac OS X
10.4.8+
Novell Support (Moonlight)
FireFox
Konqueror
Linux
(various distros)
Timeline
V 2 currently in Beta 2, will be released this year
V 1 released September 2007 (Javascript only)
Packaging
Browser plug-in, little dependency on other s/w
Usually installed on demand as content is accessed
Intended to be a quick download
V1 is ~1.2MB, V2 is ~4.6MB
Opera
Timeline, Packaging and Platforms
Mobile Silverlight
Windows Mobile 6
iPhone
Nokia
Symbian 60
Silverlight Tooling
Expression Design
Expression Blend
Vector Graphics
Designer
UI & Animation Design
Designer & Developer
VS 2008
Write XAML
Write C# Code
Developer
Declaritive Development - XAML
eXtensible Application Markup Language
Code
XAML
In Silverlight – XAML loaded at runtime and
merged with supporting “code behind” class
XAML Based Silverlight Tooling
Expression Design
Expression Blend
VS 2008
XAML
VS Project Files
Examples
Games
http://www.nokola.com/shock/
http://www.silverlightpoker.net/
Animation (Banners, Menu’s, Galleries)
http://www.microsoft.com/italy/studenti/default.mspx
http://www.laguna-coupe.com/
http://memorabilia.hardrock.com/
Rich Internet Apps
http://www.mscui.net/PatientJourneyDemonstrator/
http://mtm.viatecla.pt/
http://silverlight.net/samples/2b2/silverlightairlines/run/default.html
Media (Video & Audio)
http://www.microsoft.com/silverlight/overview/streaming.aspx
http://ek2008.nos.nl/live
{ Examples,
“Hello World” }
Silverlight V2 Controls
Built in?
Layout?
Styling?
Data Binding?
Custom?
UI Customization
Silverlight = XAML = UI flexibility
Customize the look of an application without
changing it’s behavior
Styling (Styles)
Small Visual Changes on an Element (Font, Background
Color, etc.)
Skinning (Control Templates)
Replacing Element’s entire Visual Tree
{ UI Customization }
DataBinding
Enable clean view/model separation and binding
Change UI presentation wtihout code-behind
modifications
Works with any object that implements
IEnumerable
Arrays, Lists, Collections, etc.
Binding Expressions can be one way or two way
and supports validation & converters
INotifyPropertyChange change notifications
supported
Rich Networking Options
HTTP
Asynchronous Downloads & Uploads (WebClient Class)
WCF/SOAP
Supports duplex communication (Server Push)
XML WebServices/SOAP
REST
ADO.NET Data Services Support
RSS
JSON
Sockets
Cross Domain Networking Support
Files
Isolated Storage (User Store)
Stream based access to a private file/directory
structure
Patterned after .NET Framework IsolatedStorage
classes
Read and write string or binary data
OpenFileDialog
Silverlight supports ability to prompt for local files
Silverlight does not allow direct file access without first
going through the OpenFileDialog
HTML Integration
Access HTML DOM from Silverlight
Call JavaScript functions from Silverlight
Call Silverlight from JavaScript
Handling .NET Events in Javascript Code
Handling HTML DOM Events in .NET Code
Evaluating Javascript from .NET Code
{ DataBinding, Network,
Files, HTML Integration }
Tip of the Iceberg
Visual State Manager
LINQ (Objects & XML)
Deep Zoom
Deep Zoom Composer Tool
Media (Movies & Audio)
Streaming
Microsoft Expression Encoder Tool
User & Custom Controls
Multi Threading (BackgroundWorker)
Unit Testing
Summary
Silverlight provides an incredibly powerful RIA
platform
Easy to deploy applications
Easy to create great looking applications
Easy to create fast and responsive applications
All enabled cross platform and cross browser
Silverlight enables a common programming model
across browsers, mobile devices, and the desktop
Silverlight 2 and associated tools will ship later this
year
Resources
{ www.silverlight.net }