Foundation Expression Blend 2: Building Applications in WPF and Silverlight [1st ed. 2008. Corr. 2nd printing] 9781590599761, 1590599764, 9781430206125, 1430206128

As the author promises at the beginning of the book, you need to know very little of C# (the brush-up chapter in the boo

249 37 29KB

English Pages 376 Year 2008

Report DMCA / Copyright

DOWNLOAD PDF FILE

Table of contents :
CONTENTS AT A GLANCE......Page 6
CONTENTS......Page 8
ABOUT THE AUTHOR......Page 14
ABOUT THE TECHNICAL REVIEWER......Page 16
ABOUT THE COVER IMAGE DESIGNER......Page 18
ACKNOWLEDGMENTS......Page 20
Who this book is for......Page 22
What WPF/Blend is and what C# and XAML are......Page 23
Online resources......Page 24
Layout conventions......Page 25
SETTING UP THE WPF DEVELOPMENT ENVIRONMENT......Page 28
Downloading and installing Visual Studio 2008 Professional......Page 30
Downloading and installing Microsoft Silverlight Tools Alpha Refresh for Visual Studio 2008 Beta 2......Page 35
Downloading and installing Blend 2......Page 36
Creating your first WPF project......Page 41
Summary......Page 48
A new way of working......Page 50
Your first WPF application: “Hello World!”......Page 54
Getting to know Solution Explorer......Page 56
Time for Blend 2!......Page 57
Making the “Hello World!” application more exciting......Page 65
Summary......Page 78
THE BLEND 2 INTEGRATED DEVELOPMENT ENVIRONMENT......Page 80
The Blend 2 toolbar......Page 81
The Direct Selection tool......Page 82
The Pen/Pencil tools......Page 83
The Camera Orbit tool......Page 84
The Brush Transform tool......Page 85
The shape tools: Rectangle, Ellipse, and Line......Page 87
Layout controls......Page 88
The Asset Library......Page 89
The Objects and Timeline panel......Page 92
The Project panel......Page 93
The Properties panel......Page 94
Blend development views and Workspaces......Page 108
The XAML view......Page 109
Workspaces......Page 110
Creating 3D objects in Blend......Page 113
Summary......Page 115
C# and the .NET Framework......Page 118
Why C#?......Page 119
XAML......Page 123
Summary......Page 124
LAYOUT ELEMENTS......Page 126
The Grid......Page 127
The Canvas......Page 132
The WrapPanel......Page 134
The DockPanel......Page 135
The ScrollViewer......Page 137
The Border......Page 138
The ViewBox......Page 139
Summary......Page 141
Playback modes......Page 144
Independent mode......Page 145
Switching between playback modes......Page 146
Creating your first MediaElement project......Page 147
Blend 2’s Make a Button feature......Page 153
Creating the stop Button......Page 157
Creating the pause Button......Page 159
Creating the video toggle Button......Page 161
Summary......Page 165
CONTROLTEMPLATES, STYLES, AND CUSTOM USERCONTROLS......Page 168
A Button ControlTemplate......Page 169
Styles......Page 174
Overriding default Styles for controls......Page 176
Adding your Button Style to your ResourceDictionary......Page 179
Replacing text with an image via your Button Style......Page 180
Using your Style and ControlTemplate on multiple Button controls......Page 182
Wiring up the home Button......Page 185
Custom UserControls......Page 187
Summary......Page 191
Creating an EventAndEventHandlers project......Page 194
DragEnter......Page 197
DragOver......Page 199
Drop......Page 200
Mouse events......Page 203
Summary......Page 213
OBSERVABLECOLLECTIONS AND THE DATA FACTORY......Page 216
Creating the ObservableCollection project......Page 217
Creating the ObservableCollection with an Abstract factory pattern......Page 218
Opening ObservableCollection in Blend 2......Page 224
Doing something with the selected image......Page 228
Summary......Page 231
WPF AND 3D......Page 234
Blend and the 3D image......Page 235
Working with Electric Rain’s ZAM 3D......Page 239
Working with Viewport3Ds in Blend 2......Page 247
Creating a flyby animation......Page 250
Importing and working with OBJ files......Page 254
Using the 3D Tools library......Page 260
Building a new 3DMediaElementProject......Page 261
Wiring up the buttons in Visual Studio 2008......Page 264
Making the video 3D with 3D Tools......Page 265
Summary......Page 271
DependencyProperties demystified......Page 274
Creating the project......Page 276
Styling the Rectangles and then turning them into a Button control......Page 277
Registering the custom DependencyProperties......Page 282
Adding an icon image to the project......Page 285
Making the custom UserControl functional......Page 288
Summary......Page 292
CASE STUDY A: 3DIMAGEPROJECT......Page 294
Adding images to the project......Page 295
Creating the ImageFactory......Page 297
Styling the application and creating the DataSource......Page 302
Making use of the DataSource......Page 304
Creating viewing choices......Page 307
Wiring up the RadioButton controls......Page 311
Spinning the box......Page 313
Summary......Page 317
CASE STUDY B: 3DTIEFIGHTERPROJECT......Page 320
Importing a model from ZAM 3D......Page 321
Creating the 3DTieFighterProject......Page 322
Cleaning the XAML......Page 323
Creating the buttons......Page 324
Creating the Storyboard animations......Page 326
Styling the background......Page 329
Adding descriptive text to a 3D plane......Page 330
Coding the text in Visual Studio......Page 331
Summary......Page 334
CASE STUDY C: SILVERLIGHTPAGINGSYSTEMPROJECT......Page 336
Creating the SilverlightPagingSystemProject......Page 337
Setting up various page properties......Page 338
Creating the navigation buttons......Page 340
Creating the content Canvas container and the content pages......Page 343
Creating the functionality in Visual Studio......Page 346
Summary......Page 349
Creating the SilverlightVideoPlayerProject......Page 352
Creating the functionality in Visual Studio 2008......Page 356
Summary......Page 358
References......Page 360
Tutorials......Page 361
Professional WPF/Silverlight development resources......Page 362
INDEX......Page 364

Foundation Expression Blend 2: Building Applications in WPF and Silverlight [1st ed. 2008. Corr. 2nd printing]
 9781590599761, 1590599764, 9781430206125, 1430206128

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
File loading please wait...
Recommend Papers