Book description
Silverlight Recipes: A Problem-Solution Approach, Second Edition is your practical companion to developing rich, interactive web applications with Microsoft's latest technology. This book tackles common problems and scenarios that on-the-job developers face every day by revealing code and detailed solutions. You'll quickly be able to integrate real-world, functioning code into your applications—and save hours of coding time.
The recipes included in Silverlight Recipes have been carefully selected and tested with the professional developer in mind. You'll find problems stated clearly and succinctly, artful solutions explored, and ample discussion of the code and context so you're immediately clear how the solution will support your project. You'll also discover the innovations presented in Silverlight 4 and how to effectively employ them.
Enjoy practical coverage of Silverlight development in many projects and contexts, including:
Designing complete, rich, interactive user experiences
Manipulating content and the runtime environment through the Silverlight Plug-in Runtime API
Consuming, transforming, and displaying content in your Silverlight web application through XML, LINQ-based data access, and isolated storage
Building custom controls for your Silverlight project
Integrating rich media, including audio and video, to create a very dynamic user interface and experience
Using new Silverlight features, including .NET Framework integration, the use of dynamic languages like Python and Ruby in Silverlight development, and digital rights management support
Find instant solutions, comprehensive Silverlight coverage, and time-saving expert advice, all in one book.
Table of contents
- Copyright
- About the Authors
- About the Technical Reviewers
- Acknowledgments
- Introduction
-
1. A Quick Tour of Silverlight 4 Development
- 1.1. Getting Up to Speed with Silverlight
- 1.2. Setting Up the Silverlight 4 Environment
- 1.3. Installing Additional Silverlight-Related Services and Controls
- 1.4. Understanding the Structure of a Silverlight Solution
- 1.5. Understanding the Developer/Designer Workflow
- 1.6. Understanding the Basics of Expression Blend 4
- 1.7. Accessing Source Control
- 1.8. Running Silverlight 4 on a Mac
- 1.9. Running Silverlight on Linux
-
2. Application Design and Programming Model
- 2.1. The Mechanics of Silverlight Applications
- 2.2. Leverage and Locate Controls and Classes
- 2.3. Dynamically Loading XAML
- 2.4. Persisting Data on the Client
- 2.5. Opening a Local File from a Silverlight Application
- 2.6. Accessing XML Data
- 2.7. Managing Unhandled Exceptions
- 2.8. Executing Work on a Background Thread with Updates
- 2.9. Updating the UI from a Background Thread
- 2.10. Managing XAML Resources
- 2.11. Managing Embedded Resources
- 2.12. Creating Silverlight Using Ruby, Python, or JScript
- 2.13. Creating Application Services
- 2.14. Managing Resources in Large Projects
- 2.15. Save a File Anywhere on the User's System
-
3. Developing User Experiences
- 3.1. Importing Art from Expression Design
- 3.2. Working with Color and Gradients in Blend
- 3.3. Positioning UI Elements
- 3.4. Drawing with Shapes, Paths, and Geometries
- 3.5. Providing Scrollable Content
- 3.6. Applying a Border to Elements
- 3.7. Using Simple Animations with Objects
- 3.8. Animating UI Elements with Keyframes
- 3.9. Transforming an Object
- 3.10. Creating a Simple Cartoon Scene
- 3.11. Handling Keyboard Input
- 3.12. Working with Ink
- 3.13. Adding 3-D Effects to UI Elements
- 3.14. Dynamically Creating Bitmaps
- 3.15. Improving Graphic Animation and Video Performance
- 3.16. Improve Animation with Custom Easing Functions
- 3.17. Adding Pixel Shader Visual Effects
- 3.18. Create and Work with Design-Time Data in Expression Blend
- 3.19. Reuse Application Interactivity with Behaviors
- 3.20. Customizing the Right-Click Context Menu
- 3.21. Accessing the Clipboard
- 3.22. Using Right-to-Left Text
- 3.23. Prototype Application Design
-
4. Data Binding
- 4.1. Binding Application Data to the UI
- 4.2. Binding Using a DataTemplate
- 4.3. Receiving Change Notifications for Bound Data
- 4.4. Converting Values During Data Binding
- 4.5. Binding Across Elements
- 4.6. Validating Input for Bound Data
- 4.7. Controlling Updates
- 4.8. Providing reasonable defaults for bound data
-
5. Controls
- 5.1. A Word About the Samples
- 5.2. Customizing a Control's Basic Appearance
- 5.3. Replacing the Default UI of a Control
- 5.4. Customizing the Default ListBoxItem UI
- 5.5. Displaying Information in a Pop-up
- 5.6. Displaying Row Details in a DataGrid
- 5.7. Applying Custom Templates to a DataGrid Cell
- 5.8. Creating Custom Column Types for a DataGrid
- 5.9. Creating a Composite User Control
- 5.10. Creating a Custom Layout Container
- 5.11. Creating a Custom Control
- 5.12. Defining a Custom Visual State
- 5.13. Controlling ScrollViewer Scroll Behavior
- 5.14. Customizing the Binding Validation User Interface
- 5.15. Control Behavior in Expression Blend
- 5.16. Enhancing the Design Experience with Behaviors and Triggers
-
6. Browser Integration
- 6.1. Host Silverlight on Any Technology
- 6.2. Setting Focus for Keyboard Input
- 6.3. Implementing a Full-Screen UI
- 6.4. Calling a JavaScript Method from Managed Code
- 6.5. Calling a Managed Code Method from JavaScript
- 6.6. Exchanging Data Among Multiple Plug-ins
- 6.7. Layering HTML over the Silverlight Plug-in
- 6.8. Hosting HTML in a Silverlight Application
- 6.9. Painting a Silverlight Element with HTML
- 6.10. Taking Advantage of the Navigation Framework
- 6.11. Embedding Silverlight within a Windows Gadget
- 6.12. Embedding Silverlight in an Internet Explorer 8 Web Slice
-
7. Networking and Web Service Integration
- 7.1. A Quick Word about the Samples
- 7.2. Consuming a WCF Service
- 7.3. Exchanging XML Messages over HTTP
- 7.4. Using JSON Serialization over HTTP
- 7.5. Accessing Resources over HTTP
- 7.6. Using Sockets to Communicate over TCP
- 7.7. Enabling Cross-Domain Access
- 7.8. Exchanging Data between Silverlight Applications
- 8. Building Out Of Browser Silverlight Applications
-
9. Building LOB Applications
- 9.1. Silverlight LOB Enhancements
- 9.2. Data Access Enhancements
- 9.3. Accessing RESTful Data using OData
- 9.4. Using Visual Studio 2010 WCF Data Services Tooling
- 9.5. Implementing CRUD Operations in WCF Data Services
- 9.6. Using Visual Studio 2010 WCF RIA Data Services Tooling
- 9.7. Taking Advantage of the Business Application Template
- 9.8. Databinding in XAML
- 9.9. Navigating RIA LOB Data
- 9.10. Implementing CRUD Operations in RIA Services
- 9.11. Data Validation through Data Annotation
- 9.12. Printing in a Silverlight LOB Application
-
10. Integrating Rich Media
- 10.1. Adding Video to a Page
- 10.2. Creating a Complete Video Player
- 10.3. Adding Streaming Media Support
- 10.4. Using Playlists to Package Media
- 10.5. Using Markers to Display Timed Content
- 10.6. Displaying and Seeking Using SMPTE Timecodes
- 10.7. Building a Managed Decoder for Silverlight
- 10.8. Using a WebCam
- 10.9. Processing Raw WebCam Output
- 11. Integrating Microsoft IIS Smooth Streaming
Product information
- Title: Silverlight Recipes: A Problem-Solution Approach, Second Edition
- Author(s):
- Release date: July 2010
- Publisher(s): Apress
- ISBN: 9781430230335
You might also like
book
Microsoft Expression Web 4 in Depth
The ultimate guide to creating and managing websites using Microsoft Expression Web 4. "In the trenches" …
book
A Developer’s Guide to SQL Server 2005
"I come from a T-SQL background, so when I first laid my eyes on SQL Server …
book
MCTS 70-431: Implementing and Maintaining Microsoft SQL Server 2005
The MCTS 70-431 Exam Cram is a must-have resource in your MCTS 70-431 exam preparation. The …
book
Microsoft® SQL Server® 2008 For Dummies®
If you’re a database administrator, you know Microsoft SQL Server 2008 is revolutionizing database development. Get …