Wiley 978-0-470-22840-1 Datasheet

Category
Software manuals
Type
Datasheet
Contents
Acknowledgments x
Foreword xix
Introduction xxi
Chapter 1: Introduction to Silverlight 1
What Is Silverlight? 1
What Does DOM Really Mean? 4
Silverlight Versions Explained 5
Getting the Silverlight Plug-In 6
Getting the Silverlight SDK 9
Building Silverlight Applications 13
Creating the Silverlight Object in HTML 17
Silverlight Object Attributes 18
Adding Multiple Silverlight Objects to a Page 20
Resizing a Silverlight Control 21
Displaying in Full Screen Mode 23
Understanding XAML 25
Summary 27
Chapter 2: Building Silverlight Applications Using XAML 29
Rendering Silverlight Content 29
Working with XAML in This Chapter 30
Layout of Silverlight Content 31
Positioning Objects Using ZIndex 34
Positioning Objects Using Transforms 38
Drawing with Text and Brushes 41
Using the TextBlock Object 41
Creating Hyperlinks 43
Silverlight Video 45
Adding Video to Web Pages 46
Supported Audio and Video Formats 46
Interacting with the MediaElement Object 47
Using Markers and Timelines in Video 49
Painting Video onto Objects 52
Creating Video Reflections 53
Animating Silverlight Elements 56
Summary 58
28401ftoc.qxd:WroxPro 9/12/07 9:36 PM Page xi
COPYRIGHTED MATERIAL
xii
Contents
Chapter 3: Designing Silverlight Applications Using Expression Blend 2 59
Getting the Latest Blend 2 Preview 60
Creating a New Silverlight Project 60
The Silverlight Project Starter Template 61
Blend Workspace Overview 62
Layout and Design in Blend 74
Creating and Understanding Timelines 79
Understanding Storyboards in Silverlight 80
Creating a Timeline 80
Working with Artwork Created Outside of Blend 84
Designing with Blend/Silverlight in Mind 84
Exporting to XAML in Other Tools 86
Summary 89
Chapter 4: Coding Silverlight Applications with JavaScript and XAML 91
The JavaScript Programming Model 92
Creating the Player Using JavaScript 92
Refactoring the Silverlight Player Creation 95
Dissecting the Silverlight.js Helper Library 96
createObject and createObjectEx 96
isInstalled 103
Accessing the Silverlight Player Object 104
Accessing XAML Content 105
Locating XAML Content Elements 105
Getting and Setting XAML Properties 106
Instantiating and Inserting XAML Elements 108
Examining Events in Silverlight 113
Player Events 113
XAML Element Events 115
Accessing Storyboards Programmatically 125
Using the Downloader Object 128
Downloading Packages 131
Downloading Fonts 133
Using JavaScript and the MediaElement 134
Using DownloadProgressChanged and BufferingProgressChanged Events 136
Working with Markers 137
Summary 138
28401ftoc.qxd:WroxPro 9/12/07 9:36 PM Page xii
xiii
Contents
Chapter 5: Using Silverlight with ASP.NET 139
Creating Custom Controls 142
Setting Up the Project 142
Adding the Silverlight JavaScript Library 146
Adding Xaml Control Properties 150
Rendering the Xaml Control 154
Using ASP.NET AJAX with Silverlight 158
Refactor into a ScriptControl 158
Adding Client-Oriented Properties 160
Creating the Client-Side (JavaScript) Default Type 161
Embedding and Registering the New Client-Side Type 164
Implementing AJAX Extension Methods 164
Creating Dynamic Silverlight User Interfaces with ASP.NET 166
Creating the Button Template 166
Creating the ButtonBar Server-Side Code 170
Creating the ButtonBar Client-Side Code 178
Using the ButtonBar Control 184
Final Thoughts/Recommendations 187
Summary 187
Chapter 6: Silverlight 1.1 and the CLR 189
The CLR 191
The Framework 192
Base APIs 193
Data APIs 194
Communications APIs 195
Presentation APIs 196
Debugging 199
Dynamic Language Support 199
A Quick Silverlight 1.1 Example 199
Summary 200
Chapter 7: Video Player: Silverlight 1.0 Case Example 201
Getting Started 202
Designing the Application Architecture 202
Designing the User Interface 202
Managing the Developer/Designer Workflow 204
Preparing the Media for the Application 205
Creating the Data Layer 206
28401ftoc.qxd:WroxPro 9/12/07 9:36 PM Page xiii
xiv
Contents
Creating the Host Web Page 207
Coding Lumos 208
Scene Class 209
Button Class 216
VideoArea Class 217
Summary 220
Appendix A: Silverlight Object Reference 221
ArcSegment 221
BeginStoryboard 221
BezierSegment 222
Canvas 222
ColorAnimation 222
ColorAnimationUsingKeyFrames 223
ColorKeyFrame 223
ColorKeyFrameCollection 223
DiscreteColorKeyFrame 224
DiscreteDoubleKeyFrame 224
DiscretePointKeyFrame 224
DoubleAnimation 224
DoubleAnimationUsingKeyFrames 225
DoubleCollection 225
DoubleKeyFrame 225
DoubleKeyFrameCollection 225
Downloader 226
DrawingAttributes 226
Duration 226
Ellipse 227
EllipseGeometry 227
FontFamily 227
GeometryCollection 228
GeometryGroup 228
Glyphs 228
GradientStop 229
GradientStopCollection 229
Image 229
ImageBrush 230
InkPresenter 230
KeyboardEventArgs 230
KeySpline 231
KeyTime 231
28401ftoc.qxd:WroxPro 9/12/07 9:36 PM Page xiv
xv
Contents
Line 231
LinearColorKeyFrame 232
LinearDoubleKeyFrame 232
LinearGradientBrush 232
LinearPointKeyFrame 232
LineBreak 233
LineGeometry 233
LineSegment 233
MatrixTransform 233
MediaAttributeCollection 234
MediaElement 234
MouseEventArgs 234
ParserErrorEventArgs 235
Path 235
PathFigure 235
PathFigureCollection 236
PathSegmentCollection 236
PointAnimation 236
PointAnimationUsingKeyFrames 236
PointCollection 237
PointKeyFrame 237
PointKeyFrameCollection 237
PolyBezierSegment 238
Polygon 238
Polyline 238
PolyLineSegment 239
PolyQuadraticBezierSegment 239
QuadraticBezierSegment 239
RadialGradientBrush 239
Rectangle 240
RectangleGeometry 240
RepeatBehavior 240
ResourceCollection 241
RotateTransform 241
Run 241
RuntimeErrorEventArgs 241
ScaleTransform 242
Silverlight Control 242
SkewTransform 242
SolidColorBrush 242
SplineColorKeyFrame 243
SplineDoubleKeyFrame 243
28401ftoc.qxd:WroxPro 9/12/07 9:36 PM Page xv
xvi
Contents
SplinePointKeyFrame 243
Storyboard 243
Stroke 244
StylusInfo 244
StylusPoint 244
StylusPointCollection 244
TextBlock 245
Timeline 245
TimelineCollection 245
TimelineGroup 246
TimelineMarker 246
TimelineMarkerCollection 246
TimelineMarkerEventArgs 246
TimeSpan 247
TransformCollection 247
TransformGroup 247
TranslateTransform 247
TriggerAction 248
TriggerActionCollection 248
TriggerCollection 248
UIElementCollection 248
VideoBrush 249
Appendix B: XAML Reference 251
Introducing XAML 251
Silverlight XAML Basics 253
Declaring Objects in XAML 255
Object or Content Element Syntax 255
Attribute Element Syntax 255
Property Element Syntax 256
Setting a Property Using Implicit Collection Syntax 256
Deciding When to Use Attribute or Property Element Syntax to Set a Property 258
XAML Hierarchy 258
Adding XAML Objects to the Silverlight Object Hierarchy 260
Events and the Silverlight Control 261
Code Behind and x:Name 262
Silverlight Player Events 264
Defining Event Handlers 266
Defining Events in JavaScript 268
Referencing the Silverlight Control 269
Summary 272
28401ftoc.qxd:WroxPro 9/12/07 9:36 PM Page xvi
xvii
Contents
Appendix C: Silverlight Online Resources 273
Author Blogs 273
Silverlight Influential Blogs 273
Resource Web Sites 274
Index 275
28401ftoc.qxd:WroxPro 9/12/07 9:36 PM Page xvii
28401ftoc.qxd:WroxPro 9/12/07 9:36 PM Page xviii
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8

Wiley 978-0-470-22840-1 Datasheet

Category
Software manuals
Type
Datasheet

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI