Table of Contents

What’s in the Book

This book is a “How-To” guide, so you will find solutions for specific things you want to do in Silverlight. The solutions will provide for you working samples of advanced features available in Silverlight 4, and how they apply in a real world scenario. The book moves one step at a time and teaches you by defining common problems and solving the problem independently. The chapters in the book are laid out in a progressive manner, and can also be used as a reference for any particular topic. The book is meant for intermediate to advanced programmers and a basic knowledge of .NET and standard web technologies like HTML, CSS, JavaScript, and XML is assumed.

Buy the book Fun with Silverlight 4

If you need to “dust off” your Silverlight knowledge, or if you simply need a quick, down and dirty introduction, you will find that the “Beginner’s guide: Appendix A” is well suited for this purpose.. The beginner’s guide takes you behind the scenes and shows you what Silverlight is, what is meant by a Silverlight plug-in, what the components of Silverlight applications are, and the role of the .NET Framework in the Internet platform.

Table of Contents

Download here Fun with Silverlight 4 Table Of Contents

Fun With Silverlight 4: Table of Contents

Contents at a Glance
Introduction………………………. 1

Part I
Developing Silverlight Applications

1. Design a Rich Internet Application ..11
2. Extend Control Framework………….69
3. Create Compelling Graphics ……….119
4. Work with Animation………………193

Part II
Interact with the Web

5. Extend Browser Programming Model….. 231
6. Bring Data Visualization to the Web ..295
7. Develop with ASP.NET and AJAX………379
8. Work with Web Services…………….413

Part III
Advance with Media

9. Play with Media ………………….451
10. Fun with Advanced Media ………….505

Part IV
Appendix
11. Silverlight: A Beginner’s Guide …..559

Detail: Table of Contents
———————————————-
Introduction
———————————————-
What’s in the Book 1
Section 1: Develop Silverlight Applications 2
Section 2: Interact with Web 2
Section 3: Advance with Media 3

Part I: Developing Silverlight Applications
———————————————-
1. Design a Rich Internet Application
———————————————-
Use Common Controls 11
Use a Grid 11
Use Grid Splitter Control 15
Create Popup Control 18
Work with Stack Panel 20
Use Repeat Button 22
Use ToolTip 25
Create Canvas and Shapes 29
Handle Input and Events 32
Capture Mouse Input 32
Capture Mouse 37
Capture Keyboard Input 42
Use Ink 47
Use Dynamic Resources 52
Load XAML Resource dynamically 52
Load XAML Files dynamically 55
Load XAML Code 56
Load Image file 58
Load Media File 60
Load Audio File 62
Use Fonts 63

———————————————-
2. Extend Control Framework
———————————————-
Customize Common Controls 69
Create a Reusable Control 69
Apply Style to the Login Control 71
Use Template with controls 75
Create Rich experience with Visual State Manager 78
Reusable Control 82
Create a Thumbnail User Control 82
Create a Slideshow Custom Control 90
DeepZoom 100
Create Single Image Zoom Application 100
Create Multiple Image Zoom with Information 108

———————————————-
3. Create Compelling Graphics
———————————————-
Understand Layout 119
Work with Border 119
Understand Padding 125
Work with Advanced Shapes 127
Work with Lines128
Draw Curves 131
Create Geometry 132
Draw Arcs 135
Create Yin Yan 137
Work with Paintbrushes 139
Create Solid Color Brush 140
Create a Web Safe Palette 143
Use Predefined Colors 145
Work with Linear Gradient Brush 145
Create a Sun Glow effect 148
Work with Linear Gradient Brush 150
Create Gradient for Prism 151
Work with Radial Gradient Brush 153
Work with Radial Gradient 155
Create Sun glow using Radial Gradient 157
Create a Sunrise picture using Radial Gradient 159
Create a Glass Orb 160
Use Media Brush 162
Use Image and Video in a Brush 164
Apply ImageBrush and VideoBrush in a shape 165
Image and Video Bursh on a Control 166
Work with Transformations 168
Use Rotate Transformation 168
Use Scale Transformation 171
Use Skew Transformation 173
Use Translate Transformation 176
Manipulate Image 178
Stretch Image 179
Clip Image 182
Apply Opacity to an Image 184
Shadow Image 186
Glow Image 187
Add Reflection to an Image 189
———————————————-
4. Work with Animation
———————————————-
Understanding Animation 193
Use Double Animation 196
Customize the speed of the animation 199
Rotate an Element 201
Create Multiple Animations 202
Create Point Animation 203
Create a Solar Eclipse animation 205
Use Point Animation with Gradient 207
Create Color Animation 209
Create a Rainbow with Fade In effect. 214
Understand Keyframe Animation 217
Create Discrete KeyFrame Animation 220
Create Splined KeyFrame Animation 222

Part II: Interacting with the Web
———————————————-
5. Extend Browser Programming Model
———————————————-
Get Browser Information 232
Read Query Strings 234
Implement History Navigation 238
Work with Cookies 241
Understand SilverlightHost 244
Access Silverlight Plug-in Values 245
Create Transparent Background247
Work with Custom Parameters 249
Slideshow Widget with Custom Parameters 251
Create Silverlight Dynamically 254
Use Local Storage 257
Open File Dialog 257
Work with Isolated Store 261
Add Local files to Isolated Store 266
Add embedded files to Isolated Store 271
Work with Isolated Settings 275
Work through HTML Bridge 279
Access Elements in the HTML Page 279
Access Document Object Model (DOM) 283
Access Script on the Page 286
Access Silverlight from the Page 289

———————————————-
6. Bring Data Visualization to Web
———————————————-
Know Data 295
Know Array data structures 296
Bind Data with One-Way and Two-Way Binding 311
Work with Data Template 318
Use Data Validation and Conversion 322
Work with XML Data 330
Use XML Reader 331
Create XML using XML Writer 342
Work with XLinq 346
Serialize, De-Serialize XML data 357
Understand JSON Data 360
Consume JSON Data 360
Use JSON Data Contract Serializer 366
Work with RSS and Atom feeds 369
Read RSS 2.0 and Atom 1.0 feed 370
Format XML as RSS and Atom 1.0 Feed 373

———————————————-
7. Develop with ASP.NET and AJAX
———————————————-
Use Silverlight in ASP.NET 379
Create Silverlight using Server code 380
Work with ASP.NET Silverlight Server Control 381
Work with ASP.NET Media Control 383
Encapsulate Silverlight in ASP.NET User Control 386
Work with ASP.NET AJAX Extension 390
Use ADO.NET Data Services 394
Use ADO.NET Data Services for CREATE Operation 399
Use ADO.NET Data Services for READ Operation 404
Use ADO.NET Data Services for UPDATE Operation 408
Use ADO.NET Data Services for DELETE Operation 410

———————————————-
8. Work with Web Services
———————————————-
Interact with REST Web Service 413
Use Silverlight to GET from Flickr REST API 414
Use Silverlight to POST to Twitter REST API 421
Work with ASP.NET Web service (ASMX) 426
Use Silverlight enabled WCF service 433
Develop with .NET/WCF RIA Service 439

Part III: Advance with Media
———————————————-
9. Play with Media
———————————————-
Work with Rich Media 451
Create a Rich Video Experience 452
Work with Media State and Full Screen Mode 457
Use Video Brush 463
Learn SetSource and MediaStream 470
Encode and Deliver Media 472
Progressive Download Media 473
Know Media Streaming 475
Smooth Streaming 479
Create Media Markers 483
Add Keywords and Thumbnails Media Markers 483
Add Closed Captioning to a Media 487
Add Chapters List and Subtitles 490
Edit Media 494
Insert Image Before/After Media 494
Embed Image into Media 497
Embed Video into Media (Picture in Picture) 500
Embed XAML into Media 501

———————————————-
10. Fun with Advanced Media
———————————————-
Create an Advanced Media Player 505
Custom Media Player with Timeline 506
Use Media Player Object with Media Skins 510
Customize Encoder Media Player 512
Working with Playlists 520
Create Client Side Playlists 520
Work with Web Playlists524
Create Server-Side Playlists 527
Use Webcam 529
Use Audio Capture to Record Audio 530
Use Webcam to Record Video 535
Take a Screenshot from Silverlight 542
Use Silverlight Media Frameworks (SMF) 545
SMF Simple Media Player 546
SMF Progressive Download Player 549
SMF Smooth Streaming Player 551

Part IV: Appendix
———————————————-
11. Silverlight:A Beginner’s Guide
———————————————-
Silverlight Basics 560
Silverlight Plug-in 561
Steps for rendering Silverlight on a web page 562
Silverlight Host 563
Silverlight Application File (.XAP) 564
Silverlight XAML 568
Extensible Markup Language files (Visual Part) 568
XAML .NET Files (Application Part) 572
Silverlight and .NET Framework 574
Understand the Embedded CLR 575
NET Framework Libraries for Silverlight 575

———————————————-