售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Silverlight 4 Data and Services Cookbook
Table of Contents
Silverlight 4 Data and Services Cookbook
Credits
About the authors
About the reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code for the book
Errata
Piracy
Questions
1. Learning the Nuts and Bolts of Silverlight 4
Introduction
Getting our environment ready to start developing Silverlight applications
How to do it...
How it works...
See also
Creating our first service-enabled and data-driven Silverlight 4 application using Visual Studio 2010
Getting ready
How to do it...
How it works...
The solution and project structure
Services
Data binding
See also
Using the workflow between Visual Studio 2010 and Blend 4
Getting ready
How to do it...
How it works...
See also
Using source control in Visual Studio 2010 and Blend 4
Getting ready
How to do it...
How it works...
There's more...
Commonly used terms in TFS
Deploying a Silverlight application on the server
How to do it...
How it works...
Configuration changes on the server
What if the server doesn't allow using XAP?
2. An Introduction to Data Binding
Introduction
Displaying data in Silverlight applications
Getting ready
How to do it...
How it works...
There's more...
See also
Creating dynamic bindings
Getting ready
How to do it...
How it works...
There's more...
Binding data to another UI element
Getting ready
How to do it...
How it works...
There's more...
Element bindings without bindings
See also
Binding collections to UI elements
Getting ready
How to do it...
How it works...
There's more...
See also
Enabling a Silverlight application to automatically update its UI
Getting ready
How to do it...
How it works...
Single objects
Collections
Cleaning up the code
Obtaining data from any UI element it is bound to
Getting ready
How to do it...
How it works...
See also
Using the different modes of data binding to allow persisting data
Getting ready
How to do it...
How it works...
There's more...
See also
Data binding from Expression Blend 4
How to do it...
How it works...
Using Expression Blend 4 for sample data generation
How to do it...
3. Advanced Data Binding
Introduction
Hooking into the data binding process
Getting ready
How to do it...
How it works...
The ConvertParameter
Displaying images based on a URL with converters
Replacing converters with Silverlight 4 BindingBase properties
Getting ready
How to do it...
How it works...
See also
Validating databound input
Getting ready
How to do it...
How it works...
There's more...
See also
Validating data input using attributes
Getting ready
How to do it...
How it works...
There's more...
Other uses of data annotations
See also
Validating using IDataErrorInfo and INotifyDataErrorInfo
Getting ready
How to do it...
How it works...
There's more...
See also
Using templates to customize the way data is shown by controls
Getting ready
How to do it...
How it works...
Building a change-aware collection type
Getting ready
How to do it...
How it works...
See also
Combining converters, data binding, and DataContext into a custom DataTemplate
Getting ready
How to do it...
How it works...
See also
4. The Data Grid
Introduction
Displaying data in a customized DataGrid
Getting ready
How to do it...
How it works...
There's more
See also
Inserting, updating, and deleting data in a DataGrid
Getting ready
How to do it...
How it works...
See also
Sorting and grouping data in a DataGrid
Getting ready
How to do it...
How it works...
There's more...
Sorting a template column
See also
Filtering and paging data in a DataGrid
Getting ready
How to do it...
How it works...
There's more...
See also
Using custom columns in the DataGrid
Getting ready
How to do it...
How it works...
There's more...
Implementing master-detail in the DataGrid
Getting ready
How to do it...
How it works...
There's more...
Validating the DataGrid
Getting ready
How to do it...
How it works...
There's more...
RIA Services and data annotations
See also
5. The DataForm
Introduction
Displaying and editing an object using the DataForm
Getting ready
How to do it...
How it works...
There's more...
More on DataForm behavior
Validating a DataForm or a DataGrid
Managing the editing of an object on different levels
See also
Displaying and editing a collection using the DataForm
Getting ready
How to do it...
How it works...
There's more...
See also
Customizing the DataForm using Data Annotations
Getting ready
How to do it...
How it works...
There's more...
Using Data Annotations for validation
See also
Customizing the DataForm using a custom DataTemplate
Getting ready
How to do it...
How it works...
There's more...
See also
Customizing the DataForm template
Getting ready
How to do it...
How it works...
There's more...
Getting the default template of a control
See also
Validating the DataForm
Getting ready
How to do it...
How it works...
There's more...
Other uses of Data Annotations
RIA Services and Data Annotations
See also
6. Talking to Services
Introduction
Connecting and reading from a standardized service
Getting ready
How to do it...
How it works...
See also
Persisting data using a standardized service
Getting ready
How to do it...
How it works...
See also
Configuring cross-domain calls
Getting ready
How to do it...
How it works...
Working cross-domain from a trusted Silverlight application
Getting ready
How to do it...
How it works...
See also
Reading XML using HttpWebRequest
Getting ready
How to do it...
How it works...
The request
The response
Threading headaches
See also
Reading out an RSS feed
Getting ready
How to do it...
How it works...
There's more...
RSS versions
See also
Aggregating RSS feeds
Getting ready
How to do it...
How it works...
There's more...
See also
Talking with services in the Windows Azure cloud
Getting ready
How to do it...
How it works...
There's more...
What about other cloudservices?
See also
Persisting data to and reading data from the Windows Azure cloud
Getting ready
How to do it...
How it works...
There's more...
What about relational data storage?
See also
Using socket communication in Silverlight
Getting ready
How to do it...
How it works...
The policy server
The socket server
Connecting the Silverlight application
7. Talking to WCF and ASMX Services
Introduction
Invoking a service that exposes data
Getting ready
How to do it...
How it works...
The WCF service
Connecting to the service
See also
Invoking a service such as Bing.com
Getting ready
How to do it...
How it works...
There's more...
See also
Handling faults when calling a service
Getting ready
How to do it...
How it works...
There's more...
Optimizing performance using binary XML
Getting ready
How to do it...
How it works...
The default configuration is different depending on the version of Silverlight you're using
Using binary encoding is not a security measure
See also
Using duplex communication
Getting ready
How to do it...
How it works...
The PollingDuplexBinding: polling, binding, and assemblies
The service
The client
See also
Using duplex communication with the WCF net.tcp binding
Getting ready
How to do it...
How it works...
Setup requirements
See also
Debugging a service in Silverlight
Getting ready
How to do it...
How it works...
Types of faults
Declared faults
Undeclared faults
Ensuring data is encrypted
Getting ready...
How to do it...
How it works...
See also
Securing service communication using message-based security
Getting ready
How to do it...
How it works...
Transport security is required
See also
Uploading files to a WCF service
Getting ready
How to do it...
How it works...
See also
Displaying images as a stream from a WCF service
Getting ready
How to do it...
How it works...
See also
Hooking into proxy creation using slsvcutil.exe
Getting ready
How to do it...
How it works...
Calling a WCF service from Silverlight using ChannelFactory
Getting ready
How to do it...
How it works...
See also
8. Talking to REST and WCF Data Services
Introduction
Reading data from a REST service
Getting ready
How to do it...
How it works...
See also
Parsing REST results with LINQ-To-XML
Getting ready
How to do it...
How it works...
See also
Persisting data using a REST service
Getting ready
How to do it...
How it works...
There's more...
See also
Working with the ClientHttpStack
Getting ready
How to do it...
How it works...
Advantages of ClientHttpStack
See also
Communicating with a REST service using JSON
Getting ready
How to do it...
How it works...
See also
Using WCF Data Services with Silverlight
Getting ready
How to do it...
How it works...
Locked-down services
See also
Reading data using WCF Data Services
Getting ready
How to do it...
How it works...
There's more...
See also
Persisting data using WCF Data Services
Getting ready
How to do it...
How it works...
There's more...
Talking to Flickr
Getting ready
How to do it...
How it works...
There's more...
Flickr... more information
See also
Talking to Twitter over REST
Getting ready
How to do it...
How it works...
See also
Passing credentials and cross-domain access to Twitter from a trusted Silverlight application
Getting ready
How to do it...
How it works...
Let's go cross-domain!
Pass me those credentials, will you?
See also
9. Talking to WCF RIA Services
Introduction
Setting up a data solution to work with RIA Services
Getting ready
How to do it...
How it works...
There's more...
The WCF RIA Services Toolkit
See also
Getting data on the client
Getting ready
How to do it...
How it works...
There's more...
See also
Sorting and filtering data
Getting ready
How to do it...
How it works...
See also
Persisting data to the server
Getting ready
How to do it...
How it works...
There's more...
See also
Persisting a Unit of Work/changeset
Getting ready
How to do it...
How it works...
There's more...
See also
Working with concurrency and transactions
Getting ready
How to do it...
How it works...
Tracking a user's identity
Getting ready
How to do it...
How it works...
There's more...
See also
Controlling a user's access to a service and service methods
Getting ready
How to do it...
How it works...
There's more...
Validating data using data annotations
Getting ready
How to do it...
How it works...
There's more...
See also
Validating data using shared code
Getting ready
How to do it...
How it works...
See also
Using the DomainDataSource
Getting ready
How to do it...
How it works...
There's more...
See also
Using the DomainDataSource to page through data
Getting ready
How to do it...
How it works...
See also
Sorting, filtering, and grouping data using the DomainDataSource
Getting ready
How to do it...
How it works...
There's more...
10. Converting Your Existing Applications to Use Silverlight
Introduction
Calling a stored procedure from Silverlight
Getting ready
How to do it...
How it works...
See also
Working with LINQ to SQL from Silverlight
Getting ready
How to do it...
How it works...
There's more...
What is LINQ TO SQL?
See also
Working with the Entity Framework from Silverlight
Getting ready
How to do it...
How it works...
There's more...
What is the Entity Framework?
See also
Converting a Silverlight application to use WCF RIA Services
Getting ready
How to do it...
How it works...
See also
Using ASP.NET Authentication in Silverlight
Getting ready
How to do it...
How it works...
See also
Using ASP.NET Roles in Silverlight
Getting ready
How to do it...
How it works...
See also
Using ASP.NET Profiles in Silverlight
Getting ready
How to do it...
How it works...
See also
A. Appendix
Creating a REST service from WCF
Installing a SQL Server database
Attaching an MDF file
Executing a query file
Working with Fiddler
Local traffic
Working with the Silverlight control toolkit
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜