1 / 29

Intro to Silverlight

Intro to Silverlight . Kevin Grossnicklaus. Introductions. Kevin Grossnicklaus SSE - www.SSEinc.com (1998-2009) Chief Architect Software Development Practice Leader CAIT (2003-2009) Instructor Email: kvgros@SSEinc.com Blog: http://geekswithblogs.net/kgrossnicklaus. Agenda.

gino
Download Presentation

Intro to Silverlight

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Intro to Silverlight Kevin Grossnicklaus

  2. Introductions • Kevin Grossnicklaus • SSE - www.SSEinc.com (1998-2009) • Chief Architect • Software Development Practice Leader • CAIT (2003-2009) • Instructor • Email: kvgros@SSEinc.com • Blog: http://geekswithblogs.net/kgrossnicklaus

  3. Agenda • History • Silverlight • Tools • Expression Blend 3 w/ Sketchflow • VS.NET 2K8,2010 • Resources • Questions

  4. Brief History of .NET • 2001 - .NET 1.0 (VS.NET) • 2003 - .NET 1.1 (VS.NET 2K3) • 2005 - .NET 2.0 (VS.NET 2K5) • 2006 - .NET 3.0 (WPF/WCF/WF) • 2008 - .NET 3.5 (VS.NET 2K8) • 2010 - .NET 4.0 (VS.NET 2010)

  5. History of Silverlight • WPF/E (Everywhere) released in 2006 shortly after .NET 3.0 • MIX 2007 – Announcement that WPF/E was renamed “Silverlight” and Silverlight 1.0 was released • MIX 2008 – Release of Silverlight 2.0 • MIX 2009 – Announcement of Silverlight 3.0

  6. What is Silverlight? • Browser Plug-in with a compact version of the .NET framework and the ability to render UI elements via XAML/WPF

  7. Silverlight Silverlight vs. Flash Flash Small deployment footprint via Browser Plug-in Support for Windows, Mac, and Linux Code in ActionScript Integrates with JavaScript Adobe Flash as Dev Tool Heavy animation and multi-media support Rich set of existing UI components HUGE existing adoption Many other features Larger than Flash but still small and much easier to install than full .NET framework Runs on Windows and Mac OSX (plus Linux w/ Moonlight) Code in C# or VB.NET Integrates easily with JavaScript Easily call any services VS.NET as Dev Tool Brings plug-in development to the .NET development community Heavy animation and multi-media support Rich set of existing UI components Many other features

  8. UI Options in .NET • Installed on Desktop • WinForms • WPF • Browser Based • ASP.NET (w/ AJAX) • ASP.NET MVC • Silverlight • (Mix of the above)

  9. Silverlight Platform Support • Windows • Mac OSX • Linux support provided by the Moonlight plug-in developed as part of the Mono project

  10. Silverlight Terminology • WPF • WCF • XAML • XAP • AJAX • RIA

  11. Helpful Tools Silverlight Development Tools Primary Tools VS.NET 2008 SP1, 2010 Silverlight SDK Expression Blend 2/3 Kaxaml (www.Kaxaml.com) Fiddler (www.fiddler2.com)

  12. Misc Links Silverlight Resources Primary Links www.Silverlight.net www.Asp.net www.CodePlex.com/SilverLight go-mono.com/moonlight/ www.silverlight.net/showcase http://karlshifflett.wordpress.com/xaml-power-toys/ www.codeplex.com/compositewpf

  13. Silverlight Showcase • www.Silverlight.net/ShowCase

  14. How does Silverlight work? • Plug-In Installation • Deployment • What is XAP? • Plug-In Hosting • Server does not require .NET

  15. The Silverlight BCL (CoreCLR) • OUT: • System.Data • System.Deployment • Traditional XML manipulation using System.Xml • LINQ to XML instead • Non-Generic collections • Use Generic’s instead • System.Runtime.Remoting • System.Runtime.InteropServices • No COM support • IN: • All native types with full functionality • Full LINQ Support • Including LINQ to XML • Full support calling services (either ASMX or WCF) • Powerful XAML with rich Silverlight Controls • Same garbage collection, memory management, and assembly management as full runtime • Threading Support • Generics • DIFFERENT: • Security Model

  16. WPF vs. Silverlight • WPF • Requires full .NET Framework (3.0+) be installed on client • Only supports Windows • Full access to all local resources • Full rights to local resource due to .NET code access security model • More powerful UI components and flexible UI composition model • More ability to take advantage of local audio/video resources • i.e. Video and sound cards • Silverlight • Supported by Plug-In • Supported on other platforms • Same XAML languages for declaring UI • Subset of WPF controls • Subset of .NET framework functionality • Limited access to local resources and constrained to browser sandbox

  17. Key Components of a Silverlight 2.0 Application • UI = XAML • Logic = C#/VB.NET • Data = Classes • Data Access = WCF Services • Navigation = User Controls

  18. Silverlight Controls • Out of the Box Controls (Ship w/ framework) • Silverlight Control Toolkit • Silverlight.Codeplex.com • Similar to AJAX Control Toolkit • Microsoft and Community Supported

  19. Data in Silverlight • Data Classes • INotifyPropertyChanged • Generics • i.e. List<Person> • ObservableCollection • Raises events on change • XAML Data Binding

  20. Databinding in Silverlight • Can be declared via Mark-Up extensions in XAML or via code • Key Code Properties: • DataContext • ItemsSource • Basic Binding in XAML: • Using “Binding” Markup-Extension Text=“{Binding NameFirst}”

  21. Silverlight Demo • Silverlight 3.0 features • Silverlight LOB Application

  22. Expression Blend 3

  23. Expression Blend 3 • Componentized UX behaviors – no coding • Designing with data • Adobe Photoshop and Illustrator import • XAML, C# and VB code intellisense • Source code control integration • SketchFlow

  24. SketchFlow • Breakthrough design prototyping • Visually explore composition and navigation • Communicate design alternatives to stakeholders • Solicit their feedback

  25. Visual Studio 2010

  26. Visual Studio 2010 • Modern, enhanced user experience • Democratizing application lifecycle management • Inspiring developer delight • Great web development experience • Silverlight designer support • Cloud development and deployment • More database support – DB2 & Oracle

  27. DEMOVisual Studio 2010

  28. Available today • Silverlight 3 & IIS Media Services • Silverlight 3 Tools for Visual Studio 2008 • Expression Blend 3 • Visual Studio 2010 Beta

  29. Bueller?

More Related