Copyrighted Material

Copyrighted Material

Preface . xi Acknowledgments . xiv Introduction . xv Part I: Silverlight Basics 1 Chapter 1: Getting to Know Silverlight . .3 What Is Silverlight? ...............................................................................................................3 Why Use Silverlight? .............................................................................................................4 Comparing Silverlight 1.0 and 2 ...........................................................................................5 Silverlight Framework Architecture .......................................................................................7 The Silverlight plug-in.................................................................................................7 The Silverlight core presentation framework ...............................................................8 The .NET Silverlight framework ..................................................................................9 Silverlight application architecture ............................................................................10 Summary ............................................................................................................................11 Chapter 2: Getting Started with Silverlight . 13 Implementing the Silverlight Development Environment ....................................................13 Installing Visual Studio 2008 ....................................................................................14 Installing the Silverlight plug-in ................................................................................14 Installing the Silverlight SDK .....................................................................................15 Implementing Silverlight applications on the Linux platform ....................................17 Understanding Silverlight Development Tools ....................................................................18 Using Silverlight in Visual Studio 2008 .....................................................................18 Designing Silverlight applications and elements in Expression Blend ........................19 EncodingCOPYRIGHTED Silverlight media elements in MATERIALExpression Encoder .....................................20 Outputting vector images as XAML using Expression Design ....................................20 Encoding Multiscale Images Using Deep Zoom Composer ........................................22 Building Your First Silverlight Application ..........................................................................23 Summary ............................................................................................................................28 v 002_375006-ftoc.indd2_375006-ftoc.indd v 88/28/08/28/08 110:39:570:39:57 PPMM Contents Part II: Silverlight Design Fundamentals 29 Chapter 3: Using XAML to Build Declarative Silverlight Applications . 31 Understanding the Silverlight/XAML Relationship ..............................................................31 Understanding XML Namespaces ........................................................................................32 Creating Silverlight Controls ...............................................................................................33 Creating a Button ......................................................................................................33 Creating a Calendar ...................................................................................................34 Creating a CheckBox .................................................................................................35 Creating a DatePicker ................................................................................................36 Creating a HyperlinkButton ......................................................................................37 Creating an Image .....................................................................................................37 Creating a ListBox .....................................................................................................38 Creating a MediaElement ..........................................................................................39 Creating a RadioButton .............................................................................................40 Creating a ScrollBar ...................................................................................................41 Creating a ScrollViewer .............................................................................................42 Creating a Slider ........................................................................................................43 Creating a TextBlock .................................................................................................44 Creating a TextBox ...................................................................................................45 Creating a ToggleButton ............................................................................................46 Designing the Layout of Silverlight Applications .................................................................47 Using a Canvas control ..............................................................................................47 Using a Grid control ..................................................................................................49 Using a TabControl control .......................................................................................54 Using a StackPanel control ........................................................................................57 Using a Border control ..............................................................................................58 Using XAML Transforms .....................................................................................................59 ScaleTransform .........................................................................................................59 RotateTransform........................................................................................................60 SkewTransform .........................................................................................................61 TranslateTransform ...................................................................................................62 Opacity .....................................................................................................................63 Drawing ..............................................................................................................................65 Creating a Rectangle ..................................................................................................65 Creating an Ellipse ....................................................................................................65 Creating a Path ..........................................................................................................66 Using XAML Brushes ..........................................................................................................66 Adding a SolidColorBrush .........................................................................................67 Adding a LinearGradientBrush ..................................................................................67 Adding a RadialGradientBrush ..................................................................................68 Adding an ImageBrush ..............................................................................................70 Adding a VideoBrush ................................................................................................70 vi 002_375006-ftoc.indd2_375006-ftoc.indd vvii 88/28/08/28/08 110:39:570:39:57 PPMM Contents Implementing Animations and Storyboards ........................................................................72 Defining Storyboard controls.....................................................................................73 Starting animations upon page load ..........................................................................74 Creating From/To animations ....................................................................................74 Creating Key Frame animations .................................................................................77 Creating animations as Resources ..............................................................................80 Attaching Event Handlers to XAML Elements .....................................................................81 Summary ............................................................................................................................81 Chapter 4: Using Expression Blend to Design Silverlight Applications . 83 Getting Started with Expression Blend ................................................................................84 Creating a Silverlight application project in Expression Blend ...................................84 Using the Design, XAML, and Split views ..................................................................85 Understanding the Expression Blend Toolbox ...........................................................86 Adding Silverlight controls ........................................................................................90 Arranging Controls in the Design View ...............................................................................91 Using snaplines and gridlines ....................................................................................91

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    8 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us