You are previewing Jumping from ASP.NET to Silverlight 2.
O'Reilly logo
Jumping from ASP.NET to Silverlight 2

Book Description

This Wrox Blox aims to provide an ASP.NET developer who is ready to begin his or her learning in Silverlight 2 with some familiar context, while focusing on key areas that a developer needs to be productive: layout, state, consuming and binding to data, and developing reusable controls. While there is massive depth within Silverlight 2 in its entirety, we cover some essential elements to prepare the developer for enhancing future learning or moving directly into self-study and experimentation in the core areas presented within.

ASP.NET developers have heard about the promise of delivering stunning rich client interfaces in Silverlight for a long time. From WPF, WPF/E, Silverlight 1.0, 1.1, various betas of Silverlight 2, and now the final Silverlight 2.0 release, one unmistakable characteristic of Silverlight is the departure it takes from both traditional ASP.NET Web Forms development and HTML standards at large. With the richness and flexibility inherent in this new platform comes a steep learning curve that has, up until now, justified a "wait and see" approach among .NET developers and the companies choosing .NET for their emerging web projects.

Yet the increasing expectations of web users, the power of the platform, and the large degree of overlap between .NET developers' existing skill sets in Windows application development make Silverlight 2 a more attractive choice than ever.

A professional-level understanding of ASP.NET web development is assumed, while there is no required background in Silverlight 2.

Table of Contents

  1. Copyright
  2. 1. Jumping from ASP.NET to Silverlight 2
    1. 1.1. What You Need to Get Started
    2. 1.2. Understanding the Client
      1. 1.2.1. Silverlight 2 versus .NET
        1. 1.2.1.1. Extending Silverlight Capabilities in Code
        2. 1.2.1.2. Sharing Source Code between Silverlight 2 and ASP.NET
      2. 1.2.2. Silverlight Deployments
      3. 1.2.3. Working with Application Resources
      4. 1.2.4. XAML Markup
      5. 1.2.5. Attached Properties
    3. 1.3. Managing Layout
    4. 1.4. Managing State
      1. 1.4.1. Application State
      2. 1.4.2. Isolated Storage on the Client
      3. 1.4.3. Programming State for Settings
      4. 1.4.4. Programming State for Custom Data
    5. 1.5. Control Development
      1. 1.5.1. Expression Blend 2 SP1
      2. 1.5.2. User Controls and Custom Controls
      3. 1.5.3. Establishing a Default Control Style
      4. 1.5.4. Control Properties and Behaviors
      5. 1.5.5. Creating XAML Assets
    6. 1.6. Working with VisualStateManager
    7. 1.7. Consuming Data
      1. 1.7.1. Obtaining Data from Application Resources
      2. 1.7.2. Fetching Data Using Web Services
      3. 1.7.3. Crossing Domains for Data
      4. 1.7.4. Calling ASP.NET Web Services
      5. 1.7.5. Windows Communication Foundation
      6. 1.7.6. Consuming Data from a Services Layer
      7. 1.7.7. Accessing Cross-Domain Data with WebClient
      8. 1.7.8. Persisting Server Objects
    8. 1.8. Data Binding
      1. 1.8.1. ObservableCollection<T> and INotifyPropertyChanged
      2. 1.8.2. Two-Way Binding
      3. 1.8.3. Using ASP.NET and Silverlight 2 Together
      4. 1.8.4. Adding Silverlight 2 Applications to an ASP.NET Page
      5. 1.8.5. Communicating between Silverlight Instances
    9. 1.9. Performance and Security Considerations
      1. 1.9.1. No Reliable Measure of Client Performance
      2. 1.9.2. One Control, One Instance
      3. 1.9.3. Silverlight Code Is as Readable as Any Static Resource
    10. 1.10. Conclusion
  3. About the Author