مشخصات کتاب
-
Laurence Moroney
-
2010
-
انگلیسی
-
2558
-
272
-
0
Microsoft® Silverlight® 4 Step by Step
Table of Contents
Acknowledgments xi
Introduction . xiii
Foreword xv
1 Introducing Silverlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Get the Tools 1
Install Visual Web Developer Express 7
Install the Silverlight Tools . 10
Create Your First Silverlight Application 11
Key Points . 19
2 Silverlight Controls 21
Learning Silverlight Controls . 21
Understanding the Control Model 21
Using the Silverlight Controls 27
Using the Button Control 27
Handling Mouse Events . 34
Using the CheckBox Control . 39
Using the RadioButton Control 40
Using the TextBox Control . 42
Using the Image Control 45
Using the ComboBox Control . 46
Using the ListBox Control 49
Key Points . 50
3 Layout and Styling . 53
Using the Canvas Control 53
Using the Grid Control . 55
Using the StackPanel Layout . 59
Styles and Templates 61
Key Points . 65
4 Data and RIA Services . 67
Understanding RIA Services 67
Build a Database with Visual Web Developer Express 67
Using SQL Server Within Visual Web Developer . 70
Create an RIA Services Server Project 74
ADO.NET Entity Data Model . 74
Create a Domain Service . 78
Create the Silverlight Client . 79
Key Points . 82
5 Rich Imaging . 83
Imaging in Silverlight 83
Using Deep Zoom with Silverlight 84
Getting Started with Deep Zoom Composer . 84
Building Deep Zoom Image Collections . 90
Programming with Deep Zoom . 94
Using Photosynth with Silverlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99
Create a Photosynth . 100
Sharing Your Synths 104
Building a Photosynth Web Application . 105
Key Points . 109
6 Media, Webcams, and Video 111
Media in Silverlight . 111
Using the MediaElement Control . 112
Controlling the Video Playback 114
Showing Playback Position 115
Setting the Playback Position with a Slider 118
Using Video Markers in Silverlight . 119
Using Video as a Brush 122
Using a Webcam with Silverlight 123
Key Points . 126
7 Transformation and Animation 127
Transformations . 127
Exploring Transformations 127
Animation . 140
Creating an Animation . 140
Understanding Key Frames . 142
Animation Easing 145
Defining Animation with Expression Blend 147
Key Points . 152
8 Building Desktop Applications 153
Running Applications Outside of the Browser . 153
Creating a Custom Install Link 157
Detecting Updates 159
Detecting Out of Browser Status 163
Detecting Network Connectivity and Availability . 164
Using Isolated Storage . 168
Increasing Isolated Storage . 172
Enabling Elevated Trusted Mode 174
Debugging Out of Browser Applications 177
Interoperating with COM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .178
Using Notification Windows 180
Key Points 182
9 Integrating with the Browser . 183
Bridging Silverlight and HTML 184
Open the Browser Bridge 189
Using the Browser Bridge to Control the Silverlight Application 190
Calling Browser Functions from Silverlight . 194
Integrate the Bing Maps API . 194
Control the JavaScript API from Silverlight . 196
Understanding the Silverlight Object 199
Standard Object Tag Attributes 199
Custom Silverlight Parameters 200
Using HTML Fallback 201
Key Points . 201
10 Accessing Network Services . 203
Creating a Financial Data Service . 203
Creating the Helper Class 204
Creating the Data Service 207
Using WebClient to Get Data 210
Using HTTP POST 215
Building the HTTP POST Server 215
Consuming the HTTP POST Server with Silverlight . 217
Making Cross-Domain Calls 223
Key Points . 224
11 Windows Phone Development 225
Getting Started 225
Write Your First Windows Phone Application 228
Build a Service Client in Windows Phone 233
Create the Solution and Add the Service Proxy 233
Create the Stock Quote User Interface 234
Key Points . 240
12 Windows Phone Features . 241
Using Orientation 241
Using the Back Button 246
Using the Application Bar 249
Using Input Scope . 256
Using Typing Intelligence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .261
Using the Multi-Touch Interface . 263
Other Services 266
Key Points . 267
13 Expression Blend for Windows Phone 269
Create Your First Windows Phone Application
with Expression Blend 269
Key Points . 277
14 Getting Started with XNA Game Development for Windows
Phone . 279
Creating an XNA Application and Adding Content 279
Writing the Code for Your Game in XNA 284
Creating the Class Variables 286
Loading the Content 288
Updating the Game World 290
Moving the Non-Player Character . 293
Checking for Collision 295
Drawing the Sprites to the Screen . 296
Key Points . 297
Index . 299