You are previewing Introducing Microsoft® Silverlight™ 3, 3rd Edition.
O'Reilly logo
Introducing Microsoft® Silverlight™ 3, 3rd Edition

Book Description

Get a running start with Silverlight 3—the cross-platform, cross-browser plug-in for delivering the next generation of rich interactive applications (RIAs) for the Web—with early insights and practical advice from a Silverlight insider.

Table of Contents

  1. Introducing Microsoft® Silverlight™ 3
  2. Dedication
  3. Acknowledgments
  4. Introduction
    1. Why Microsoft Silverlight?
    2. Who This Book Is For
    3. What This Book Is About
    4. System Requirements
    5. The Companion Web Site
    6. Support for This Book
    7. Questions and Comments
  5. I. Introducing Silverlight 3
    1. 1. Introducing Silverlight 3
      1. Silverlight and User Experience
      2. Silverlight Architecture
      3. Silverlight and XAML
      4. Silverlight and Expression Studio
        1. Silverlight and Expression Design
        2. Silverlight and Expression Blend
          1. Exploring the Silverlight Website Project
          2. The Default Web Page
          3. Using Expression Blend to Build and Run a Silverlight Application
        3. Silverlight and Expression Encoder
      5. Summary
    2. 2. Using Expression Blend with Silverlight
      1. Getting Started with Expression Blend
        1. Creating a Silverlight Application
          1. The Default MainControl
          2. The Default App.xaml and Code-Behind Files
          3. Executing the Application
      2. The Expression Blend IDE
        1. The Tools Pane
        2. The Objects And Timeline Pane
        3. The Design Surface
        4. The Projects Pane
        5. The Properties Pane
      3. Using Expression Blend to Build Silverlight Applications
        1. Layout
          1. Using a Grid
          2. Using Canvas
          3. Using StackPanel
          4. Using the ScrollViewer
          5. The Border Control
        2. Placing and Customizing Visual Elements
        3. Placing and Customizing Controls
        4. Using Expression Blend to Design Animations
      4. Using SketchFlow
      5. Summary
    3. 3. Using Visual Studio with Silverlight
      1. Installing the Visual Studio Tools for Silverlight
      2. Using Visual Studio to Build a Silverlight Application
        1. Creating a Silverlight Application in Visual Studio 2008
        2. The Silverlight Control Project
          1. Understanding the Silverlight Project Properties
          2. The Properties Files
          3. References
          4. The App.xaml and App.xaml.cs Files
          5. The MainPage.xaml and MainPage.xaml.cs Files
        3. The Web Project
      3. Building a Silverlight Game
        1. Creating the UI in XAML
        2. Writing the Game Code
          1. Initializing the Data Structures
          2. Creating the Puzzle Pieces
          3. Shuffling the Pieces
          4. Drawing the Board
          5. Handling User Control
          6. Checking Winning Condition
      4. Summary
    4. 4. Silverlight XAML Basics
      1. XAML Positioning Properties
      2. XAML Brushes
        1. SolidColorBrush
        2. LinearGradientBrush
          1. Changing the Gradient Direction
          2. Adding Gradient Stops
        3. RadialGradientBrush
          1. Setting the Focal Point
          2. Changing the SpreadMethod
          3. Setting the Radius of the RadialGradientBrush
        4. Using ImageBrush
          1. Stretching the Image
          2. Aligning the Image
        5. VideoBrush
      3. XAML Visual Properties
        1. Using XAML Dimension and Position Properties
        2. Using Opacity
        3. Cursor Behavior
        4. Controlling Stroke
          1. Setting Stroke Width
          2. Setting Stroke Dash
          3. Controlling Line Joins
      4. Shapes in XAML
        1. Using the Ellipse Object
        2. Using the Rectangle Object
        3. Using the Line Object
        4. Using Paths and Geometries
          1. The ArcSegment Object
          2. The LineSegment Object
          3. The PolyLineSegment Object
          4. The BezierSegment Object
          5. The PolyBezierSegment Object
          6. The QuadraticBezierSegment Object
          7. The PolyQuadraticBezierSegment Object
          8. Compound Path Segments
        5. Using the GeometryGroup Object
        6. The Path Language
      5. Clipping and Geometries in XAML
      6. Summary
    5. 5. XAML Transformation and Animation
      1. Transformations
        1. Rotating with the RotateTransform Property
        2. Scaling with the ScaleTransform Property
        3. Moving an Object with the TranslateTransform Property
        4. Skewing an Object with the SkewTransform Property
        5. Simulating 3-D Perspective with SkewTransform
        6. Defining Your Own Transforms with MatrixTransform
        7. Combining Transformations
        8. 3-D Effects Using the Perspective Transform
      2. Animation
        1. Using Triggers and Event Triggers
        2. Using BeginStoryboard and Storyboard
        3. Defining the Animation Parameters
          1. Targeting the Animation
          2. Setting the Duration
          3. Setting the Begin Time
          4. Using the SpeedRatio Property
          5. Using the AutoReverse Property
          6. Setting the RepeatBehavior Property
          7. Animating a Value with DoubleAnimation
          8. Animating a Color with ColorAnimation
          9. Animating a Point with PointAnimation
        4. Using Key Frames
          1. Using Linear Key Frames
          2. Using Discrete Key Frames
          3. Using Spline Key Frames
      3. Animation and Expression Blend
        1. Animation Easing
      4. Summary
    6. 6. The Silverlight Browser Object
      1. Hosting Silverlight in the Browser
      2. Responding to Page Load Events
      3. Responding to Page Error Events
        1. The Default Event Handler
        2. Using Your Own Error Handler
        3. Silverlight Control Properties
          1. Direct Properties
          2. Content Properties
          3. Settings Properties
        4. Silverlight Control Methods
          1. The createFromXaml Method
          2. The createFromXamlDownloader Method
          3. The createObject Method
          4. The findName Method
        5. The Downloader Object
          1. Downloader Object Properties
          2. Downloader Object Methods
          3. Downloader Object Events
          4. Using the Downloader Object
      4. Using the Object Model to Build an Install Experience
        1. Programming the Install User Experience
          1. Task 1. Integrate Silverlight.js and use the <object> Tag
          2. Task 2. Render the UI Prompts at the Appropriate Time
          3. Task 3. Capture the Callbacks from Silverlight.js
          4. Task 4. Work Around Known Issues
        2. Exploring the Finished Page with Install UX
      5. Running Silverlight Applications Out of the Browser
      6. Summary
  6. II. Programming Silverlight 3 with .NET
    1. 7. The Silverlight Browser Bridge
      1. Creating the Base Application
        1. Creating the Data Class
        2. Creating the Data in Silverlight
        3. Rendering the Data with an ItemsControl
        4. Putting It All Together
      2. Controlling the Application with JavaScript
        1. Editing the Hosting Page
        2. Writing the JavaScript
        3. Making Silverlight Scriptable
        4. Putting It All Together
      3. Manipulating the Silverlight Render Tree
      4. Accessing JavaScript Functions from .NET
      5. Summary
    2. 8. Silverlight Core Controls
      1. The Button Control
      2. The CheckBox Control
      3. The ComboBox Control
      4. The HyperlinkButton Control
      5. The Image Control
      6. The ListBox Control
      7. The RadioButton Control
      8. The TextBlock Control
      9. The TextBox Control
        1. The PasswordBox Control
      10. Common Properties, Events, and Methods
        1. Handling Focus
        2. Handling the Mouse
          1. Using the Mouse Events for Drag-and-Drop Operations
        3. Using the Keyboard
      11. Summary
    3. 9. Silverlight Controls: Advanced Controls
      1. The DataGrid Control
      2. The Calendar and DatePicker Controls
      3. The RepeatButton and ToggleButton Controls
      4. The ScrollViewer Control
      5. The Slider Control
      6. Summary
    4. 10. Media in Silverlight: Video
      1. The MediaElement Control
        1. Using the MediaElement Control
          1. Simple Video Playback with the MediaElement Control
        2. Controlling the Size of the MediaElement Control
        3. Controlling How the Media Is Stretched
        4. Controlling Video Opacity
        5. Using Transformations with the MediaElement Control
        6. Writing Content on Video
        7. Clipping Media with Geometries
        8. Determining Automatic Playback Behavior
        9. Controlling Audio
      2. Programming the MediaElement
        1. Providing Basic Video Controls
        2. Managing Buffering and Download
        3. Managing Current Video State
        4. Managing Playback Position
        5. Using Media Timeline Markers
      3. Painting Video Using the VideoBrush
      4. H.264 Video Support
      5. Protecting Media with Digital Rights Management
        1. How DRM Works in Silverlight
        2. Building a Silverlight Client for DRM
          1. Detecting Current State
        3. User Opt-Out and Error Handling with DRM
      6. Summary
    5. 11. Media in Silverlight: Rich Imaging
      1. Deep Zoom with the MultiScaleImage Control
        1. Using the Deep Zoom Composer
        2. Building Your First Deep Zoom Project
        3. Using the Mouse and Logical Coordinates in Deep Zoom
        4. Creating the Zoom Functionality Using the Mouse Wheel Button
        5. Collections in Deep Zoom
      2. Creating Photo Scenes Using Photosynth
        1. Using Photosynth in Silverlight
      3. Summary
    6. 12. Building Connected Applications with Silverlight
      1. Building the Data Service
      2. Using the WebClient Class
      3. Expanding the Service for HTTP-POST
      4. Using HttpWebRequest and HttpWebResponse
      5. Building the SOAP Web Service
      6. Creating a Web Services Client in Silverlight
      7. Building the WCF Service
      8. Making Calls Across Domains
      9. Summary
    7. 13. Styles and Templates in Silverlight
      1. Understanding Styling
        1. Creating a Style
        2. Changing the Style Scope
      2. Templates
      3. Summary
    8. 14. Data Binding with Silverlight
      1. Creating a Data Object
      2. Binding to the Data Object
      3. Using Conversion in Binding
      4. Catching Property Changed Events
      5. The Binding Language
      6. Summary
    9. 15. Using Dynamic Languages in Silverlight
      1. Your First Silverlight IronPython Application
      2. Using Ruby and JavaScript
        1. Using Ruby
        2. Using Dynamic JavaScript
      3. A More Complex Example
      4. Summary
  7. A. About the Author
  8. Index
  9. About the Author
  10. Copyright