| Contents at a Glance | 5 |
---|
| Contents | 6 |
---|
| About the Author | 16 |
---|
| About the Technical Reviewer | 17 |
---|
| Acknowledgments | 18 |
---|
| Introduction | 19 |
---|
| Understanding Silverlight | 19 |
| About This Book | 26 |
| The Last Word | 27 |
| Introducing Silverlight | 28 |
---|
| Silverlight and Visual Studio | 28 |
| Creating a Stand- Alone Silverlight Project | 30 |
| Creating a Simple Silverlight Page | 32 |
| Silverlight Compilation and Deployment | 40 |
| Creating an ASP. NET- Hosted Silverlight Project | 51 |
| The Last Word | 54 |
| XAML | 55 |
---|
| XAML Basics | 55 |
| Properties and Events in XAML | 60 |
| Resources | 71 |
| The Last Word | 76 |
| Layout | 77 |
---|
| The Layout Containers | 77 |
| Simple Layout with the StackPanel | 81 |
| The Grid | 88 |
| Coordinate- Based Layout with the Canvas | 99 |
| Custom Layout Containers | 103 |
| Sizing Pages | 110 |
| Navigation | 118 |
| The Last Word | 121 |
| Dependency Properties and Routed Events | 122 |
---|
| Dependency Properties | 122 |
| Routed Events | 130 |
| The Last Word | 146 |
| Elements | 147 |
---|
| The Silverlight Elements | 147 |
| Static Text | 149 |
| Images | 156 |
| Content Controls | 159 |
| Buttons | 163 |
| Tooltips and Pop- Ups | 166 |
| Items Controls | 170 |
| Text Controls | 174 |
| Range- Based Controls | 176 |
| Date Controls | 178 |
| The Last Word | 181 |
| The Application Model | 182 |
---|
| Application Events | 182 |
| Application Tasks | 187 |
| Resources | 198 |
| Class Library Assemblies | 206 |
| The Last Word | 209 |
| Shapes and Geometries | 210 |
---|
| Basic Shapes | 210 |
| Paths and Geometries | 225 |
| Exporting Clip Art | 238 |
| The Last Word | 243 |
| Brushes and Transforms | 244 |
---|
| Brushes | 244 |
| Transparency | 251 |
| Transforms | 258 |
| The Last Word | 265 |
| Animation | 266 |
---|
| Understanding Silverlight Animation | 267 |
| Creating Simple Animations | 268 |
| Animation Types Revisited | 281 |
| Animations in Code | 290 |
| Encapsulating Animations | 302 |
| Frame- Based Animation | 307 |
| The Last Word | 311 |
| Sound, Video, and Deep Zoom | 313 |
---|
| Supported File Types | 313 |
| The MediaElement | 314 |
| Advanced Video Playback | 326 |
| Deep Zoom | 345 |
| The Last Word | 353 |
| Styles, Templates, and Custom Controls | 354 |
---|
| Styles | 354 |
| Template Basics | 358 |
| The Parts and States Model | 366 |
| Creating Templates for Custom Controls | 382 |
| The Last Word | 399 |
| Browser Integration | 400 |
---|
| Interacting with HTML Elements | 401 |
| Code Interaction | 414 |
| Combining Silverlight and HTML Content | 425 |
| The Last Word | 429 |
| ASP.NET and Web Services | 430 |
---|
| ASP. NET Controls That Use Silverlight | 431 |
| Building Web Services for Silverlight | 445 |
| The Last Word | 455 |
| Data Binding | 456 |
---|
| Binding to Data Objects | 457 |
| Binding to a Collection of Objects | 470 |
| Data Conversion | 483 |
| Data Templates | 492 |
| The DataGrid | 497 |
| The Last Word | 512 |
| Isolated Storage | 513 |
---|
| Understanding Isolated Storage | 513 |
| Using Isolated Storage | 515 |
| Reading Local Files with OpenFileDialog | 524 |
| The Last Word | 527 |
| Multithreading | 528 |
---|
| Understanding Multithreading | 528 |
| The Thread Class | 530 |
| The BackgroundWorker | 542 |
| The Last Word | 550 |
| Networking | 551 |
---|
| Interacting with the Web | 551 |
| Processing Different Types of Data | 565 |
| Sockets | 583 |
| The Last Word | 600 |
| Index | 601 |