SlideShare a Scribd company logo
Silverlight 4
                        accelerated fundamentals


Mike Taulty
Microsoft Ltd
@mtaulty
mtaulty@microsoft.com
http://mtaulty.com
slides are meant as revision
we will go quickly



     talk = slides + demos
                               we will dig in using demos
                               we will go more slowly
Silverlight is a browser plug-in
it runs x-browser, x-platform




Linux support is from Novell’s Moonlight project
Release is at Silverlight version 2
with 3 released versions



  V1                   V2                   V3
Sept 2007            Oct 2008             July 2009


      versions are back-compat, no side-by-side
        today you’d start on Silverlight 3 or 4
for browser launched, rich
             internet apps
in a security sandbox




in browser   out of browser   trusted
.NET applications – XAML + code




XAML markup language      .NET code handles interaction
     defines UI


             Silverlight .NET Application
.NET code on a CLR & framework
                         Common .NET Development
                           .NET Languages ( C#, VB, etc )

                           .NET Tools ( Visual Studio, etc )

                              .NET Developers & Skills




             Specific .NET Frameworks/Runtimes
Desktop/Server                  Mobile Devices                   Silverlight
.NET Framework 3.5 Sp1         .NET Compact Framework          Silverlight .NET Framework
framework capabilities




      layout               animation



styling & resources       data-binding
layout system
                  Many items in one cell
                  Items occupying many cells
 Layout Panels
Grid
StackPanel
Canvas
Custom


         Proportional, fixed or “right” sized
         rows/columns
layout system




                                  alignment
     content alignment

          alignment




Margin                     Padding
layout system




Skew   Scale   Translate   Rotate
layout system




• perspective transformations for 3D effects
built-in animation system
• Animation is driven by Storyboards

          Storyboard       BeginTime    Repeat              Duration        ...
                           From         To                  By              ...


                                       BeginTime   Repeat        Duration   ...
               DoubleAnimation
                                       From        To            By         ...



                ColorAnimation         BeginTime   Repeat        Duration   ...

                                       From        To            By         ...


                PointAnimation         BeginTime   Repeat        Duration   ...

                                       From        To            By         ...


                     etc


    > animations can apply easing functions
        > ~10 built-in (e.g. sine) + custom
resources and styles


            •   Elements have a dictionary of resources identified by Key
            •   Can store arbitrary objects, not just UI objects
            •   {StaticResource} XAML directive does hierarchical lookup
            •   Code can access local element’s Resources dictionary
resources




            •   Styles contain setters for Properties and Values
            •   Styles can derive from other styles
            •   Styles are applied explicitly by key or implicitly
  styles    •   Can be changed dynamically to theme an application
databinding

Grid     •   Elements have a DataContext
         •   Resolution of declarative bindings is done by hierarchically
Button       examining an element’s DataContext
databinding




databinding is key in Silverlight
rich graphical capabilities

                           Rectangle

                Effects                Polygon




      Brushes                                     Line



                          Graphics

       Text                                      Polyline




                Ellipse                 Path

                          Geometry
rich media capabilities
Video              Ink            Audio
• H.264                           • WMA
• WMV
                                    • 7,8,9
  • 1,2,3,A,VC-1
                                  • MP3
• VideoBrush
• Smooth                          • AAC
  Streaming
• Playlists                       Imaging
• Markers                         • Image
• DRM                             • ImageBrush
                                  • DeepZoom
  • VC-1           Html           • WriteableBitmap
  • H.264
  • On/Offline     • WebBrowser
                   • HtmlBrush
in-box controls

Button            AutoCompleteBox        ComboBox     ChildWindow
CheckBox          PasswordBox            ListBox      DescriptionViewer
HyperlinkButton
                  RichTextArea           TabControl   Frame
RadioButton
                  Label                  TreeView     GridSplitter
RepeatButton
                  TextBlock                           NotificationWindow
ToggleButton
                  ValidationSummary                   ScrollViewer

                                                      Slider

Image                                                 ToolTip

MediaElement       DataGrid         Calendar          ViewBox

MultiScaleImage    DataPager        DatePicker        WebBrowser
Silverlight Toolkit controls
  • CodePlex project with source code




                 Accordion                     ButtonSpinner
                 LayoutTransformer             UpDown Controls
                 TransitioningContentControl   Rating
DockPanel                                      TimePicker
                 Expander
WrapPanel                                      Drag/Drop
                 BusyIndicator                 GlobalCalender
controls




controls are key in Silverlight
apps interop with the browser
• From .NET
    –   access the plugin settings
    –   access the browser info
    –   access the HTML Page
    –   access to the HTML Window
    –   access the HTML DOM
    –   access the Javascript engine
                                       Silverlight
• From Javascript
    – access the plugin object
    – access registered .NET types                   Silverlight
    – access objects in visual tree
• Silverlight  Silverlight
    – secure x-app communication
    – spans browser instances
    – includes out-of-browser apps
rich internet applications

firewall
network




network is key in Silverlight
apps interop with the machine

• read/write files
   – isolated storage
   – via explicit open/save file dialogs
   – without dialogs
• detect network status &
  changes
• display notification windows
• access the local clipboard
• access a webcam/microphone
• print via a print dialog
• act as a drop target for files
• call local COM code
resources




www.silverlight.net
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
     conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
                                 MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

More Related Content

PPTX
Silver Light1.0
PDF
Desingning reusable web components
PDF
SEG March Flash Report
PPTX
презентация для ра Mini (2)
PDF
App template
PDF
Comitati e campagna di informazione
PDF
Mike Taulty TechDays 2010 Silverlight and Windows Phone 7 CTP
PDF
Silverlight 4 & Windows Phone 7 at Zup Zip Black Coffee#5
Silver Light1.0
Desingning reusable web components
SEG March Flash Report
презентация для ра Mini (2)
App template
Comitati e campagna di informazione
Mike Taulty TechDays 2010 Silverlight and Windows Phone 7 CTP
Silverlight 4 & Windows Phone 7 at Zup Zip Black Coffee#5

Similar to Mike Taulty MIX10 Silverlight 4 Accelerated Fundamentals (20)

PPTX
Windows phone and azure
PPTX
Building Rich Internet Applications Using Microsoft Silverlight 2, Part 2
PDF
Silverlight 4
PPTX
ArcReady - Architecting For The Client Tier
PDF
Silverlight 2 For Developers
PPTX
XAML: One Language to Rule Them All
PDF
Silverlight Document Search Engine
PDF
Silverlight abhinav - slideshare
PDF
Client Continuum Dec Fy09
PDF
Mike Taulty TechDays 2010 Silverlight 4 - What's New?
PPT
Silverlight overview
PDF
WDN08 Silverlight
PPTX
Building appsinsilverlight4 part_1
PDF
Silverlight - What Is It And How Can We Use It
PPT
Silverlight Training
PDF
Luis Martins
PDF
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
PPT
Silverlight 2 with Visual Studio 2008 and Expression Blend
PPTX
New Introductionfor Flash Designers
PPTX
Get To Know Silverlight
Windows phone and azure
Building Rich Internet Applications Using Microsoft Silverlight 2, Part 2
Silverlight 4
ArcReady - Architecting For The Client Tier
Silverlight 2 For Developers
XAML: One Language to Rule Them All
Silverlight Document Search Engine
Silverlight abhinav - slideshare
Client Continuum Dec Fy09
Mike Taulty TechDays 2010 Silverlight 4 - What's New?
Silverlight overview
WDN08 Silverlight
Building appsinsilverlight4 part_1
Silverlight - What Is It And How Can We Use It
Silverlight Training
Luis Martins
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
Silverlight 2 with Visual Studio 2008 and Expression Blend
New Introductionfor Flash Designers
Get To Know Silverlight
Ad

More from ukdpe (20)

PPTX
Mike Ormond: Silverlight for Windows Phone 7 (UK TechDays)
PPTX
Windows Phone 7: How (Not) to Fail Marketplace Ingestion
PPTX
Mike Ormond: Developing for Windows Phone 7
PPTX
Mike Taulty OData (NxtGen User Group UK)
PPTX
Microsoft UK TechDays - jQuery and ASP.NET
PPTX
Microsoft UK TechDays - Top 10 ASP.NET 4.0 Features
PPTX
Microsoft UK TechDays - ASP.NET 4.0 Overview
PDF
Mike Taulty MIX10 Silverlight 4 Patterns Frameworks
PDF
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2
PDF
Mike Taulty DevDays 2010 Silverlight MEF
PDF
Mike Taulty DevDays 2010 Silverlight 4 Networking
PPTX
Mike Taulty MIX10 Silverlight Frameworks and Patterns
PPTX
Explaining The Cloud
PPTX
Microsoft In Education - Steve Beswick
DOC
How Microsoft Secures its Online Services [WHITEPAPER]
PPTX
Overview of Microsoft App-V 4.5
PPTX
Optimising your site for search engines
PPTX
Microsoft's Web Platform
PPTX
Entity Framework 4 In Microsoft Visual Studio 2010 - ericnel
PPT
MikeTaulty_Ux_Update
Mike Ormond: Silverlight for Windows Phone 7 (UK TechDays)
Windows Phone 7: How (Not) to Fail Marketplace Ingestion
Mike Ormond: Developing for Windows Phone 7
Mike Taulty OData (NxtGen User Group UK)
Microsoft UK TechDays - jQuery and ASP.NET
Microsoft UK TechDays - Top 10 ASP.NET 4.0 Features
Microsoft UK TechDays - ASP.NET 4.0 Overview
Mike Taulty MIX10 Silverlight 4 Patterns Frameworks
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2
Mike Taulty DevDays 2010 Silverlight MEF
Mike Taulty DevDays 2010 Silverlight 4 Networking
Mike Taulty MIX10 Silverlight Frameworks and Patterns
Explaining The Cloud
Microsoft In Education - Steve Beswick
How Microsoft Secures its Online Services [WHITEPAPER]
Overview of Microsoft App-V 4.5
Optimising your site for search engines
Microsoft's Web Platform
Entity Framework 4 In Microsoft Visual Studio 2010 - ericnel
MikeTaulty_Ux_Update
Ad

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Empathic Computing: Creating Shared Understanding
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Cloud computing and distributed systems.
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Machine learning based COVID-19 study performance prediction
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation theory and applications.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Network Security Unit 5.pdf for BCA BBA.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Empathic Computing: Creating Shared Understanding
The AUB Centre for AI in Media Proposal.docx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Cloud computing and distributed systems.
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Machine learning based COVID-19 study performance prediction
Chapter 3 Spatial Domain Image Processing.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Diabetes mellitus diagnosis method based random forest with bat algorithm

Mike Taulty MIX10 Silverlight 4 Accelerated Fundamentals

  • 1. Silverlight 4 accelerated fundamentals Mike Taulty Microsoft Ltd @mtaulty mtaulty@microsoft.com http://mtaulty.com
  • 2. slides are meant as revision we will go quickly talk = slides + demos we will dig in using demos we will go more slowly
  • 3. Silverlight is a browser plug-in
  • 4. it runs x-browser, x-platform Linux support is from Novell’s Moonlight project Release is at Silverlight version 2
  • 5. with 3 released versions V1 V2 V3 Sept 2007 Oct 2008 July 2009 versions are back-compat, no side-by-side today you’d start on Silverlight 3 or 4
  • 6. for browser launched, rich internet apps
  • 7. in a security sandbox in browser out of browser trusted
  • 8. .NET applications – XAML + code XAML markup language .NET code handles interaction defines UI Silverlight .NET Application
  • 9. .NET code on a CLR & framework Common .NET Development .NET Languages ( C#, VB, etc ) .NET Tools ( Visual Studio, etc ) .NET Developers & Skills Specific .NET Frameworks/Runtimes Desktop/Server Mobile Devices Silverlight .NET Framework 3.5 Sp1 .NET Compact Framework Silverlight .NET Framework
  • 10. framework capabilities layout animation styling & resources data-binding
  • 11. layout system Many items in one cell Items occupying many cells Layout Panels Grid StackPanel Canvas Custom Proportional, fixed or “right” sized rows/columns
  • 12. layout system alignment content alignment alignment Margin Padding
  • 13. layout system Skew Scale Translate Rotate
  • 14. layout system • perspective transformations for 3D effects
  • 15. built-in animation system • Animation is driven by Storyboards Storyboard BeginTime Repeat Duration ... From To By ... BeginTime Repeat Duration ... DoubleAnimation From To By ... ColorAnimation BeginTime Repeat Duration ... From To By ... PointAnimation BeginTime Repeat Duration ... From To By ... etc > animations can apply easing functions > ~10 built-in (e.g. sine) + custom
  • 16. resources and styles • Elements have a dictionary of resources identified by Key • Can store arbitrary objects, not just UI objects • {StaticResource} XAML directive does hierarchical lookup • Code can access local element’s Resources dictionary resources • Styles contain setters for Properties and Values • Styles can derive from other styles • Styles are applied explicitly by key or implicitly styles • Can be changed dynamically to theme an application
  • 17. databinding Grid • Elements have a DataContext • Resolution of declarative bindings is done by hierarchically Button examining an element’s DataContext
  • 19. rich graphical capabilities Rectangle Effects Polygon Brushes Line Graphics Text Polyline Ellipse Path Geometry
  • 20. rich media capabilities Video Ink Audio • H.264 • WMA • WMV • 7,8,9 • 1,2,3,A,VC-1 • MP3 • VideoBrush • Smooth • AAC Streaming • Playlists Imaging • Markers • Image • DRM • ImageBrush • DeepZoom • VC-1 Html • WriteableBitmap • H.264 • On/Offline • WebBrowser • HtmlBrush
  • 21. in-box controls Button AutoCompleteBox ComboBox ChildWindow CheckBox PasswordBox ListBox DescriptionViewer HyperlinkButton RichTextArea TabControl Frame RadioButton Label TreeView GridSplitter RepeatButton TextBlock NotificationWindow ToggleButton ValidationSummary ScrollViewer Slider Image ToolTip MediaElement DataGrid Calendar ViewBox MultiScaleImage DataPager DatePicker WebBrowser
  • 22. Silverlight Toolkit controls • CodePlex project with source code Accordion ButtonSpinner LayoutTransformer UpDown Controls TransitioningContentControl Rating DockPanel TimePicker Expander WrapPanel Drag/Drop BusyIndicator GlobalCalender
  • 23. controls controls are key in Silverlight
  • 24. apps interop with the browser • From .NET – access the plugin settings – access the browser info – access the HTML Page – access to the HTML Window – access the HTML DOM – access the Javascript engine Silverlight • From Javascript – access the plugin object – access registered .NET types Silverlight – access objects in visual tree • Silverlight  Silverlight – secure x-app communication – spans browser instances – includes out-of-browser apps
  • 26. network network is key in Silverlight
  • 27. apps interop with the machine • read/write files – isolated storage – via explicit open/save file dialogs – without dialogs • detect network status & changes • display notification windows • access the local clipboard • access a webcam/microphone • print via a print dialog • act as a drop target for files • call local COM code
  • 29. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.