Silverlight 4 unleashed
Printed entirely in color, with helpful figures and syntax coloring to make code samples appear as they do in Visual Studio and Expression Blend! Using Silverlight 4, you can build richer and more powerful applications than ever before, and deploy them seamlessly in browsers, on desktop computers, a...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
[Place of publication not identified]
Sams Pub
2011
|
Edición: | 1st edition |
Colección: | Unleashed
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629082806719 |
Tabla de Contenidos:
- Cover
- Table of Contents
- Foreword
- Introduction
- 1 Three Years of Silverlight
- Discovering Silverlight 4
- Learning Silverlight Is Betting on the Future
- How Can They Be So Fast?
- How About Compatibility with Older Versions?
- Cross-Browser and Cross-Platform Compatibility
- Windows and Macintosh
- Linux
- Alternatives to Silverlight
- In the Web Browser
- Out of the Browser
- Legacy Technologies
- A Short History of Silverlight
- Silverlight 1.0
- Silverlight 2
- Silverlight 3
- And Silverlight 4
- Previewing the Future of Silverlight
- Installing Silverlight 4 as a User
- Opening a Silverlight 4 Application
- What to Do If Silverlight Is Not Installed?
- Exploring Silverlight 4 Demos
- Deep Zooming the Matterhorn
- Getting Involved Socially with Sobees
- Navigating with Bing Maps Streetside and PhotoSynth
- Visualizing Information with the Pivot Viewer
- Drawing on the Web with Fantasia
- How Can You Get Involved?
- Summary
- 2 Setting Up and Discovering Your Environment
- Installing Visual Studio
- Visual Studio 2010
- Visual Web Developer Express
- Installing the Silverlight Tools for Visual Studio
- Verifying the Installation
- Inspecting the Application
- Unpacking an XAP File
- Using the Visual Studio Designer
- Implementing Hello Silverlight
- Checking the Properties Editor
- Adding Some Text
- Using Design Time Width and Height
- Saving the Application
- Installing Expression Blend
- Creating a New Silverlight Application
- Opening Hello Silverlight
- Adding an Effect
- Creating a Pulse Animation
- Triggering the Storyboard
- Testing the Application
- Summary
- 3 Extending Your Application with Controls
- Extending XAML
- Mapping a Prefix to a CLR Namespace
- Why Is a Prefix Not Always Needed?
- Adding a Namespace to Any Element.
- Defining Your Own URI and Mapping CLR Namespaces
- What's a Control?
- User Controls
- Custom Controls
- Summary
- 4 Investigating Existing Controls
- Reviewing the Basics
- Show Me Some Code!
- Changes in Existing Controls
- Mouse Wheel Support
- Localizing for Right-to-Left Languages
- Getting a Control Template's Current State
- Adding SelectedValue and SelectedValuePath
- Adding Command and CommandParameter
- Presenting and Editing Text with the RichTextBox
- Zooming with the Viewbox
- Opening a ChildWindow
- Finding More Information
- Where to Find Additional Controls?
- Do You Really Need a Control?
- The Silverlight Toolkit
- Installing the Silverlight Toolkit
- Third-Party Providers
- Summary
- 5 Understanding Dependency Properties
- Inheriting DependencyObject
- Threading
- Accessing a Dependency Property's Value
- Using a DependencyObject as Data Item
- Registering Dependency Properties
- Defining Metadata
- Initializing Dependency Objects
- Understanding Attached Properties
- Using Attached Properties for Values
- Registering an Attached Property
- Using Custom Attached Properties in XAML
- Implementing an Attached Behavior
- Building on Attached Behaviors with Blend Behaviors
- Adding a New Property with Snippets
- Installing the Snippets for Silverlight
- Using the Snippets
- Calculating a Dependency Property's Value
- Getting the Property's Base Value
- Reading the Local Value
- Summary
- 6 Working with Data: Binding, Grouping, Sorting, and Filtering
- Diving into Data Bindings
- Understanding a Binding's Elements
- Understanding the Namescope
- Setting the Source
- Refining the Path
- Flowing in Two Directions
- Converting the Values
- Changing the Format
- Handling Special Cases
- Property Trigger
- Validating Input
- Using the Visual Studio Binding Dialog.
- Using the Expression Blend Binding Dialog
- Debugging Data Bindings
- Checking the Output Tab
- Creating a Test Converter
- Grouping, Filtering, and Sorting Data
- Working with the CollectionViewSource
- Using a PagedCollectionView
- Binding Directly to the Source
- Summary
- 7 Understanding the Model-View-ViewModel Pattern
- About Design Patterns
- Separating the Concerns
- Why Is Separation Good?
- Classic Separation Patterns
- History of MVVM
- Developing Expression Blend
- Presentation Model for WPF and Silverlight
- Architecture of MVVM
- Translating to Silverlight
- Two Kinds of View-models
- Binding the View to the View-model
- Understanding the Data Context
- Inheriting the Data Context
- Binding to the View
- Building a Sample Application
- The Model's Interface
- Building a CustomerViewModel
- Calling the Service in the MainViewModel
- Binding to Results
- Testing the Application
- Bridging the Separation
- Implementing a ViewModelBase Class
- Using Commands
- Sending Messages
- Using an MVVM Framework
- What Could Be Better?
- Summary
- 8 Using Data Controls
- Filtering and Paging with the PagedCollectionView
- Preparing the Sample
- Building the PagedCollectionView
- Filtering Data
- Paging Through Data
- Optimizing Data Handling
- Implementing Custom Sorting
- Adding a DataPager Control
- Customizing the Display
- Validating Data Input
- Using Interface-Based Validation
- Validating with Data Annotations
- Validating Before or After the Data Is Set
- Validating on the Client and on the Server
- Reviewing the DataGrid
- Using the DataGrid with Automatic Columns
- Choosing Between DataGrid and ListBox
- Editing Data in the DataForm
- Adding a Description
- Validating the Input
- Committing Changes Manually
- Defining Fields Manually
- Getting More Information.
- Making a Simple Property Editor
- Summary
- 9 Connecting to the Web
- Getting Information from Cross-Domain Servers
- Checking Whether a Policy File Exists
- Working Around Cross-Domain Restrictions
- Placing Simple Calls
- Informing the User
- Learning with a Sample
- Downloading Strings
- Detecting Errors, Checking the Result
- Opening a Resource for Reading
- Uploading a String
- Opening a Resource for Writing
- Accessing Headers
- Sending Complex Messages
- Posting a File to the Server with HttpWebRequest
- Discovering the New Networking Stack
- Using the Client HTTP Stack
- Using Other HTTP Methods
- Using the CookieContainer
- Handling Responses
- Handling XML Responses
- Handling JSON Responses
- Communicating with WCF
- Setting Up a Service
- Connecting the Client Application
- Updating the Code on the Server
- Publishing the Service
- Summary
- 10 Creating Resources, Styles, and Templates
- Working with Resources in XAML
- Using Local Resources
- Merging Dictionaries
- From the Same Assembly
- From a Different Assembly
- Resolving Resources
- Working with Resources in Blend
- Merging a Resource Dictionary
- Creating New Resources
- Selecting a Resource for a Property
- Using the Resources Panel
- Cleaning Up Unused Resources
- Using the Pistachio Tool
- Styling a Control
- Using Implicit Styles
- Creating a Hierarchy of Styles
- Creating a New Style in Blend
- Templating a Control
- Copying a Template in Blend
- Creating a Custom Easing Function
- Making a Control in Blend
- Applying a Theme
- Summary
- 11 Mastering Expression Blend
- What Is Blend, Exactly?
- Working as a Tool for Integrators
- Editing XAML Markup
- When Should You Use User Controls?
- Making an Application Blend
- Why Is Some Code Not Executed?
- Why Does Some Code Fail?
- Detecting the Cause of an Exception.
- Isolating Code in Design Mode
- Creating Design Time Data in Blend
- Understanding the Design-Time Data Context
- Using Blend Behaviors
- Behavior, Trigger, or Action?
- Adding a Blend Behavior in Code
- Creating a New Blend Behavior
- Finding More Information
- Summary
- 12 Sketching User Experience
- Sketching as a Discovery Process
- Using Sketching and Wireframing Tools
- Other Kinds of Sketching
- Discovering SketchFlow
- Creating a New SketchFlow Application
- Checking the Panels
- Creating and Connecting Screens
- Building the UI
- Creating a Component Screen
- Using Sketch Controls
- Exploring the Sketch Controls
- Creating States and Transitions
- Building an Animation
- Deploying the SketchFlow Application
- Running the Prototype
- Giving Feedback
- Importing and Managing User Feedback
- Importing and Exporting
- Importing from Photoshop and Illustrator
- Importing from PowerPoint
- Exporting to Word
- Integrating and Collaborating
- Integrating into SharePoint
- Integrating into Team Foundation Server
- Summary
- 13 Creating Line-of-Business Applications
- Preparing the Server-Side
- Prerequisites
- Preparing the Server-Side Application
- Creating the Silverlight Client
- Bringing the Client and the Server Together
- Adding a Domain Service
- Inspecting the Domain Service Class
- Inspecting the Metadata
- Creating a New Server-Side Query
- Working with the Visual Designer
- Understanding the DomainDataSource
- Calling a Query with Parameter
- Sorting the Data
- Adding a Pager
- Refactoring the Application to MVVM
- Adding a View-model
- Adapting the XAML Markup
- Customizing the Columns
- Localizing the User Interface
- Adding a RelayCommand Class
- Executing the CRUD Operations in Code
- Displaying Messages from the View-model
- Deleting an Order
- Validating the Values.
- Filtering the Data.