Cover image for Getting Started with Silverlight

Book description

Silverlight is Microsoft's new cross-browser plug-in for delivering richer web experiences to end-users, including video and animations. Silverlight is generating buzz not only inside the traditional Microsoft developer community, but also among designers and web developers who have long relied on other tools such as Macromedia Flash to get their jobs done. Though Silverlight is still in beta, there's no need to wait. In this Short Cut, Siverlight-insider and Microsoft MVP Shawn Wildermuth introduces you to Silverlight's key features and shows you how to tap into its functionality to spice up your HTML and ASP.NET pages. You'll begin with the "Why" and "What" of Silverlight," but quickly move on to learn the basics of Silverlight XAML, the mark-up language you'll use to deliver Silverlight content to your web pages. You'll learn about the Silverlight layout model, namespaces, animations and more. You'll see how to host Silverlight on an HTML page, how to handle events and errors, and how to manipulate Silverlight XAML dynamically with JavaScript. You'll learn how to work with prerecorded audio and video as well as streaming media, and how to integrate Silverlight with an ASP.NET project. Finally, you'll get suggestions on where to look for tools, examples and additional documentation. In short, if you're ready to test-drive Silverlight today, this Short Cut is the perfect tutorial for experienced web developers, and it comes in a single package that's concise, coherent and loaded with sample code.

Table of Contents

  1. Getting Started with Silverlight
    1. Why Silverlight?
    2. What Is Silverlight?
      1. Hello Silverlight
    3. Working with Silverlight XAML
      1. Layout Model
      2. Namespaces
      3. Graphics
      4. Mouse Cursors
      5. Measuring Text
      6. Transformations
      7. Animations
    4. Comparing Silverlight and WPF
    5. Development Model
      1. Hosting Silverlight in HTML
      2. End-User Installation
      3. Handling XAML Errors
      4. Event Model
      5. Working with XAML Properties
      6. The Host
      7. Working with the XAML Object Model
      8. An Example: Creating a Button
      9. Mixing Silverlight and HTML
      10. Creating Dynamic XAML
      11. Controlling Media
      12. Controlling Animations
        1. Delaying animations
        2. Controlling animation execution
      13. The Silverlight Downloader
    6. Using Silverlight with ASP.NET
      1. Comingling Silverlight with ASP.NET
      2. Dynamic XAML
      3. XAML and User Controls
    7. Using Tools
      1. Expression Toolset
        1. Expression Design
        2. Expression Blend
        3. The XAML event workaround
        4. The animation workaround
        5. Expression Media
      2. Visual Studio
      3. Other Tools
    8. Finding Examples in the World
    9. Summary
    10. For Further Reading
    11. About the Author