250 likes | 268 Views
Fons Sonnemans (Trainer) Reflection IT fons.sonnemans@reflectionit.nl http://www.reflectionit.nl. Silverlight 2. Microsoft .NET. Desktop. Web. Desktop. Web. media & RIA.
E N D
Fons Sonnemans (Trainer) Reflection IT fons.sonnemans@reflectionit.nl http://www.reflectionit.nl Silverlight 2
Microsoft .NET Desktop Web Desktop Web 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 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 Platforms & Browsers (Microsoft support) Novell Support (Moonlight) IE 6.0+ FireFox 1.5+ Safari 2.0 FireFox Konqueror Opera Windows Vista, XP, 2003, 2000* Mac OS X 10.4.8+ Linux (various distros)
Timeline, Packaging and Platforms Mobile Silverlight Windows Mobile 6 iPhone Nokia Symbian 60
Silverlight Tooling Expression Blend VS 2008 Expression Design Vector Graphics Designer UI & Animation Design Designer & Developer Write XAML Write C# Code Developer
Declaritive Development - XAML • eXtensible Application Markup Language • In Silverlight – XAML loaded at runtime and merged with supporting “code behind” class Code XAML
XAML Based Silverlight Tooling Expression Blend VS 2008 Expression Design 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
demo {Examples, “Hello World”}
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
demo {UI Customization}
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 DataBinding
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 Rich Networking Options
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
demo {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 }