𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Silverlight Recipes: A Problem-Solution Approach, Second Edition (Expert's Voice in Silverlight)

✍ Scribed by Jit Ghosh, Rob Cameron


Publisher
Apress
Year
2010
Tongue
English
Leaves
1057
Series
Expert's Voice in Silverlight
Edition
2
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


If you're a busy developer who has experience in .NET and want to add to your book collection one great Silverlight resource this book should be the one. The format of this book is "how do you do something?" followed by a concise, pragmatic walk-through to demonstrate "exactly how to do it." So many books and online resources water down their content by trying to explain things in a grand vision; this resource takes a totally different approach. Most of the chapters focus on exactly one problem that would take a day of research and web searching to do, yet actually 10-15 minutes of code or Blend usage to actually do.

Each chapter of this book covers a high-level topic but is broken into individual (re: not one huge, monolithic application you lose track of halfway through) recipes. The topics range from solving problems experienced by the brand new Silverlight developer, like "How to create a new Silverlight project" or "How to run Silverlight on a Mac or Linux computer" to those more complex like "Accessing JSON data (or communicating with Sockets or SOAP) via Silverlight."

An entire chapter is dedicated to line-of-business application development with Silverlight. As browser-based enterprise applications require more GUI richness Silverlight will increase in demand, and I've found so many books decline to focus or pay a lot of attention to the "boring old" LOB application development cycles. Not this text, it demystifies RIA and REST, XAML databinding, and a host of other problems in LOB applications and does so in a concise, no-nonsense manner.

The final chapters cover in this no-nonsense style the features Silverlight offers for multimedia needs by covering how to play and stream media via Silverlight. Some of these examples cover the ins and outs of using IIS 7.0's streaming features to make video playback as smooth as possible, offering a full lifecycle approach, from client-to-web server.

If you're about to embark into the exciting world of Silverlight 4.0 this could be the best resource around. The wealth of information in terms of the topics covered and the pragmatic approach to just answering the questions in a concise manner make this an important resource for the Silverlight developer.

✦ Table of Contents


Prelim......Page 1
Contents at a Glance......Page 6
Contents......Page 7
About the Authors......Page 28
About the Technical Reviewers......Page 29
Acknowledgments......Page 30
Who This Book Is For......Page 31
Contacting the Authors......Page 32
Getting Up to Speed with Silverlight......Page 33
Silverlight 3 Highlights......Page 35
Rich Internet Applications and Line-of-Business Enhancements......Page 36
Browser Support......Page 37
Business Application Development......Page 38
Interactive User Experiences......Page 39
Silverlight and Visual Studio 2010......Page 40
Problem......Page 41
Problem......Page 42
Solution......Page 43
How It Works......Page 44
The Code......Page 45
Solution......Page 53
The Tools......Page 54
The Process......Page 55
How It Works......Page 57
The Code......Page 59
How It Works......Page 64
Problem......Page 65
How It Works......Page 66
The Mechanics of Silverlight Applications......Page 67
Find a Control......Page 69
The Code......Page 80
How It Works......Page 86
The Code......Page 88
How It Works......Page 93
The Code......Page 94
Solution......Page 97
The Code......Page 98
Problem......Page 102
Problem......Page 103
How It Works......Page 104
The Code......Page 105
Solution......Page 113
How It Works......Page 114
The Code......Page 115
How It Works......Page 118
The Code......Page 119
The Code......Page 123
How It Works......Page 128
The Code......Page 129
How It Works......Page 132
The Code......Page 133
Solution......Page 137
The Code......Page 138
Problem......Page 140
The Code......Page 141
Developing User Experiences......Page 143
How It Works......Page 144
How It Works......Page 147
The Code......Page 150
How It Works......Page 154
Canvas......Page 155
Grid......Page 156
Code for Canvas......Page 157
Code for StackPanel......Page 159
Code for the Grid......Page 160
Problem......Page 163
Drawing with Shapes......Page 164
Drawing with Path Objects......Page 169
Drawing with Geometries......Page 170
Drawing with Paths......Page 171
Drawing with Geometries......Page 176
Solution......Page 181
The Code......Page 182
How It Works......Page 184
The Code......Page 187
How It Works......Page 189
The Code......Page 190
How It Works......Page 196
The Code......Page 199
Problem......Page 201
How It Works......Page 202
The Code......Page 203
The Code......Page 207
How It Works......Page 212
The Code......Page 213
Solution......Page 216
The Code......Page 217
How It Works......Page 223
The Code......Page 224
How It Works......Page 230
The Code......Page 231
How It Works......Page 237
The Code......Page 238
How It Works......Page 241
The Code......Page 242
How It Works......Page 248
The Code......Page 249
How It Works......Page 253
The Code......Page 256
How It Works......Page 263
The Code......Page 264
Problem......Page 265
The Code......Page 266
How it Works......Page 270
The Code......Page 271
Problem......Page 273
The Code......Page 274
Problem......Page 275
The Code......Page 276
Binding Expression......Page 279
Associating the Data Source......Page 280
The Code......Page 281
Declaring a DataTemplate......Page 287
The Code......Page 289
Change Notification for Noncollection Types......Page 295
Change Notification for Collection Types......Page 296
The Code......Page 297
How It Works......Page 312
Implementing Value Conversion......Page 313
The Code......Page 314
Binding to Another Element......Page 325
Binding to the TemplatedParent......Page 326
The Code......Page 327
Getting Error Information......Page 333
The Code......Page 334
How It Works......Page 348
The Code......Page 349
How It Works......Page 358
Fallback value......Page 359
The Code......Page 360
Controls......Page 365
How It Works......Page 366
The Code......Page 368
How It Works......Page 370
The Code......Page 380
How It Works......Page 386
The Code......Page 387
How It Works......Page 395
The Code......Page 397
The Code......Page 407
The Code......Page 417
How It Works......Page 423
The Code......Page 425
How It Works......Page 430
The Code......Page 435
Problem......Page 444
How It Works......Page 445
The Code......Page 446
Problem......Page 457
How It Works......Page 458
The Code......Page 461
How It Works......Page 474
The Code......Page 475
How It Works......Page 486
The Code......Page 487
Problem......Page 495
How It Works......Page 496
The Code......Page 501
How It Works......Page 511
The Code......Page 515
How It Works......Page 518
The Code......Page 520
Problem......Page 527
How It Works......Page 528
The Code......Page 530
Solution......Page 532
The Code......Page 533
How It Works......Page 538
The Code......Page 540
How It Works......Page 547
The Code......Page 549
Solution......Page 555
How It Works......Page 556
The Code......Page 557
How It Works......Page 564
The Code......Page 565
Solution......Page 570
The Code......Page 571
Solution......Page 573
The Code......Page 574
The Code......Page 576
How It Works......Page 578
The Code......Page 581
How It Works......Page 587
The Code......Page 592
The Code......Page 603
Networking and Web Service Integration......Page 609
A Quick Word about the Samples......Page 610
How It Works......Page 611
Invoking a Service Operation......Page 613
Configuring a WCF Service for Silverlight......Page 614
The Code......Page 615
How It Works......Page 632
Using HttpWebRequest/HttpWebResponse in Silverlight......Page 633
The Code......Page 634
JSON......Page 645
Configuring WCF to Use JSON......Page 646
The Code......Page 647
Downloading/Uploading Resources......Page 650
The Code......Page 651
How It Works......Page 675
The Sockets API in Silverlight......Page 676
Running the Sample Code......Page 678
The Client......Page 679
The Chat Server......Page 698
The Policy Server......Page 705
How It Works......Page 708
The Code......Page 710
Receiver Registration......Page 712
Receiving Messages......Page 713
Sending Messages......Page 714
The Code......Page 715
Problem......Page 731
How It Works Preparing the Application......Page 732
Installing the Application......Page 734
Customizing the Installation Flow......Page 735
Updating Locally Installed Applications......Page 737
The Code......Page 738
How It Works Window Attributes......Page 754
The Code......Page 756
Problem......Page 762
Instantiating a COM object......Page 763
Handling a COM event......Page 764
The Code......Page 765
Windows Image Acquisition......Page 766
The Application Code......Page 769
Taskbar Notification......Page 775
Data Access Enhancements......Page 777
Solution......Page 778
The Code......Page 779
The Code......Page 782
Solution......Page 788
The Code......Page 789
How It Works......Page 792
The Code......Page 793
The Code......Page 800
Solution......Page 802
The Code......Page 803
The Code......Page 805
Solution......Page 807
The Code......Page 808
How It Works......Page 811
The Code......Page 812
The Code......Page 815
Problem......Page 819
VideoBrush......Page 820
The Code......Page 823
Acquiring Media......Page 824
MediaElement States......Page 825
Seeking Within the Media......Page 826
Installing the Sample Code......Page 827
The Player Code......Page 828
The MediaSlider Custom Control......Page 841
The MediaButtonsPanel Custom Control......Page 851
Problem......Page 855
Network Considerations......Page 856
Setting Up WMS 2008......Page 857
Setting Up Publishing Points......Page 859
The Code......Page 861
Changes to the Player......Page 862
Server-Side Playlists......Page 896
Client-Side Playlists......Page 898
The Code......Page 899
Encoding Markers Using Expression Encoder 3......Page 902
MediaElement and Markers......Page 903
The Code......Page 904
Problem......Page 918
Timecodes......Page 919
The Code......Page 920
How It Works......Page 932
MediaStreamSource......Page 933
Initializing the Media Stream......Page 934
Sampling......Page 936
Stream Switching......Page 937
The Recorder......Page 938
The Custom MediaStreamSource......Page 946
Problem......Page 956
Video and Audio Format Choices......Page 957
Capturing a still image......Page 958
The Code......Page 959
VideoSink and AudioSink......Page 964
The Code......Page 965
Integrating Microsoft IIS Smooth Streaming......Page 981
How It Works IIS Media Services......Page 982
Setting Up IIS7......Page 986
The Silverlight Client/Smooth Streaming Server Data Exchange......Page 987
Testing the Smooth Streaming Presentation......Page 988
Problem......Page 989
The Code......Page 990
How It Works......Page 995
Streams and Tracks......Page 996
Injecting the Metadata and Content......Page 998
Using Metadata at Playback......Page 1001
How It Works......Page 1006
Creating the External Manifests......Page 1007
Merging the Manifests at Runtime......Page 1008
How It Works......Page 1009
The Code......Page 1010
Problem......Page 1013
Problem......Page 1014
How It Works......Page 1015
The Code......Page 1017
Β¦ A......Page 1019
Β¦ B......Page 1021
Β¦ C......Page 1023
Β¦ D......Page 1027
Β¦ E......Page 1030
Β¦ G......Page 1032
Β¦ I......Page 1034
Β¦ L......Page 1036
Β¦ M......Page 1038
Β¦ N......Page 1040
Β¦ O......Page 1041
Β¦ P......Page 1042
R......Page 1045
Β¦ S......Page 1046
Β¦ T......Page 1051
Β¦ U......Page 1052
Β¦ V......Page 1053
Β¦ W......Page 1055
Β¦ X......Page 1056
Β¦ Z......Page 1057


πŸ“œ SIMILAR VOLUMES


Silverlight 2 Recipes: A Problem-Solutio
✍ Jit Ghosh, Rob Cameron πŸ“‚ Library πŸ“… 2008 πŸ› Apress 🌐 English

As the cover shows, this is a Problem-Solution approach to Silverlight 2. for those wanting to find out how to do a certain type of function, this text provides a good place to start on how to accomplish it. The statements on problems are clear, solutions straight forward. Included in the first ch

Silverlight Recipes: A Problem-Solution
✍ Jit Ghosh, Rob Cameron πŸ“‚ Library πŸ“… 2010 🌐 English

Silverlight Recipes: A Problem-Solution Approach, Second Edition is your practical companion to developing rich, interactive web applications with Microsoft’s latest technology. This book tackles common problems and scenarios that on-the-job developers face every day by revealing code and detailed s

Silverlight Recipes: A Problem-Solution
✍ Rob Cameron, Jit Ghosh πŸ“‚ Library πŸ“… 2009 πŸ› Apress 🌐 English

<p><em>Silverlight Recipes: A Problem-Solution Approach</em> is your practical companion to developing rich, interactive web applications with Microsoft's latest technology. This book tackles common problems and scenarios that on-the-job developers face every day by revealing code and detailed solut

Silverlight Recipes: A Problem-Solution
✍ Rob Cameron, Jit Ghosh πŸ“‚ Library πŸ“… 2009 πŸ› Apress 🌐 English

Silverlight Recipes: A Problem-Solution Approach is your practical companion to developing rich, interactive web applications with Microsoft's latest technology. This book tackles common problems and scenarios that on-the-job developers face every day by revealing code and detailed solutions. You'll

Silverlight 2 Recipes: A Problem-Solutio
✍ Jit Ghosh, Rob Cameron (auth.) πŸ“‚ Library πŸ“… 2010 πŸ› Apress 🌐 English

<p><p>Microsoft .NET architect evangelist <strong>Jit Ghosh</strong> presents a practical companion guide to developing rich, interactive web applications with Silverlight 2. Common problems, issues, and every–day scenarios are tackled with a detailed discussion of the solution and ready–made code r

Introducing Silverlight 4 (Expert's Voic
✍ Ashish Ghoda πŸ“‚ Library πŸ“… 2010 πŸ› Apress 🌐 English

I have read many technical books over the years and this is one is one of those books that you know you better keep handy. I really like how Robert has this book laid out and how he introduces you to Silverlight. I've been a .NET guy since version 1.0. But like most developers, I haven't had the cha