Your SlideShare is downloading. ×
0
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
An Introduction To Silverlight
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

An Introduction To Silverlight

1,379

Published on

Overview of Silverlight and looking at some of it’s most important features. …

Overview of Silverlight and looking at some of it’s most important features.

Download the source code of the demos from here: http://gregdoesit.com/2010/03/slides-and-code-for-the-presentation-an-introduction-to-silverlight/

Published in: Technology
1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total Views
1,379
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
56
Comments
1
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. An Introduction To Silverlight Gergely Orosz http://GregDoesIT.com @gergelyorosz
  • 2. In this presentation
    • What SL is capable of
    • How it is different
    • Learning curve overview
    • Why use SL
    • Non-traditional way
  • 3. What is Silverlight?
    • Rich Internet Application (RIA) platform
    • Capabilities are similar to
      • Flash
      • Java FX
    • Web-based subset of WPF
  • 4. Flash vs Silverlight Flash Silverlight Animation model Frame-based Time-based Language ActionScript CLR-compilant (VB.NET, C#) Platform All major Limited Linux (Moonlight) Multithreading No (from programmer perspective) Yes
  • 5. Flash vs Silverlight Flash Silverlight Image support Most formats JPG and PNG Video, audio Multiple formats, low-level APIs VC-1 codec, WMW, WM, no low-level APIs Streaming More cost-effective Other More mature Deep Zoom
  • 6. Flash vs Silverlight
    • Features: almost identical
    • Development environments
    • Streaming
    • Mobile: ?
  • 7. WPF
    • Descendant of Windows Forms
    • Built on .NET 3.5
    • XAML: descriptive markup language
  • 8. WPF / Silverlight features
    • Vector graphics & bitmap effects
    • Data binding & UI update
    • Animations
    • Rich content: videos, images, sounds
    • Styling, templates
  • 9. Silverlight: lightweight WPF
    • CLR within Browser
    • Limited CLR:
      • Not all libraries
      • Local filesystem limited
      • Networking limited
  • 10. XAML
    • Separate UI and logic
    • XML markup, clean syntax
    • XAML and code behind files
    • Does not support generics
  • 11. XAML: a simple example
    • Code
  • 12. UI Basics
    • Layout
      • Grid, Canvas, StackPanel
    • Controls
      • Button, HyperLinkButton, ComboBox etc
    • Text, images
      • TextBlock, Image, MediaElement
    • Brushes
      • Solid, linear, radial, image, video
    • User Controls
  • 13. UI Basics: Example
    • VideoBrush Example
    • Use MSDN/references to look up UI elements
  • 14. Styling and templating
    • Defining styles:
      • TargetType
      • Setters that are valid on the target
    • Templates
      • Customize controls
      • Uses ControlTemplate class
    • Easy to define in XAML
  • 15. Styling and templating: example
    • Code
  • 16. Dependency Properties
    • Extend CLR properties
      • Property changed notification
      • Data Binding
      • Animating
      • Default value and ClearValue
    • Has to inherit DependencyObject
  • 17. Dependency Properties: example
    • Registering, default value, Property Changed
    • Animating
    • Data Binding
  • 18. Attached Properties
    • Global property that can be set on any object element
    • Static Dps
    • Used by the owner, defined on the child
    • E.g. Canvas.Left, Grid.Column
  • 19. Attached properties: example
    • Code
  • 20. MVVM
    • How to effectively build large applications in WPF
    • Lots of UI markup, lots of data binding
    • Variation of MVC
  • 21. MVVM
    • Model
      • BL, UI independent
    • View
      • Visual elements + input processing
    • Data binding
      • View and model can be bound directly
      • Usually direct binding is not possible
  • 22. MVVM
    • ViewModel
      • “ Model of a View”
      • Abstraction of the view: contains state and behaviour
      • Data binder/converter:
        • Model information -> View information
        • View commands -> Model
  • 23. MVVM: Example
  • 24. MVVM in Silverlight
    • Worth using on larger projects
    • Frameworks
      • MEF
        • Official
      • Prism
        • Non-official, but MS
  • 25. Summary
    • Similar to WPF
    • XAML
    • Styling & templating
    • DPs
    • Attached properties
    • MVVM for larger applications
  • 26. Effort learning SL
    • Project structure: small
    • UI: significant
    • Media: moderate
    • Data binding: moderate
  • 27. Effort learning SL
    • Network: moderate
    • Events: moderate
    • Other: moderate - significant
      • Dependency Properties, Attached Properties
      • MVVM
      • Navigation Framework
      • Out of Browser applications
  • 28. Why It's Worth It
    • Things you couldn't do before!
      • Good looking controls & pages
      • Animation
      • Video & vector graphics
  • 29. Why It's Worth It
    • Silverlight client for Facebook
    • Silverlight Toolkit (with source)
    • http://www.jumpman23mosaic.com
    • http://silverlight.net/showcase/
    • http://nokola.com/ (with source)
  • 30. Suggested Learning Curve
    • C# / VB experience
    • Web
      • http://silverlight.net/getstarted/
      • MSDN: Getting Started with Silverlight
    • Books
    • WPF
  • 31. Thank You

×