You are previewing Blend for Visual Studio 2012 by Example : Beginner's Guide.
O'Reilly logo
Blend for Visual Studio 2012 by Example : Beginner's Guide

Book Description

Leverage the power of Blend to create, modify, and reuse applications and components for Windows using a practical, hands-on guide

In Detail

Creating applications with compelling graphics has been one of the main goals of client applications, and with the arrival of WPF, Silverlight, and HTML5 it is much easier than ever before to create interactive and rich user interfaces.

Blend for Visual Studio 2012 by Example Beginner's Guide will give you a good grounding in creating Windows, Web, and Windows Phone applications. You will also look at the various layouts and controls available in Blend and how we can create animations and behaviors in Blend.

Towards the end, you will be aware of the various capabilities that are available in Blend out of the box.

What You Will Learn

  • Learn about layouts and controls offered by Blend and how to use them

  • Understand the need for and purpose of XAML and how to use it in Blend applications

  • Create applications for Windows 8

  • Add behaviors and states to our applications

  • Explore vector graphics

  • Create user and custom controls and reuse them across applications

  • Understand data binding and use it in our applications

  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. Blend for Visual Studio 2012 by Example Beginner's Guide
      1. Table of Contents
      2. Blend for Visual Studio 2012 by Example Beginner's Guide
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Sections
        5. Time for action – heading
          1. What just happened?
          2. Pop quiz – heading
          3. Have a go hero – heading
        6. Conventions
        7. Reader feedback
        8. Customer support
          1. Downloading the example code
          2. Downloading the color images of this book
          3. Errata
          4. Piracy
          5. Questions
      8. 1. Getting Started with Blend
        1. Blend for Visual Studio 2012
        2. Downloading Blend
        3. Time for action – installing Microsoft Blend
          1. What just happened?
        4. Creating your first application in Blend
        5. Time for action – creating a project in Blend using an existing template
          1. What just happened?
        6. The fundamental pieces of the Blend IDE
          1. The tools panel
        7. Time for action – adding TextBlock
          1. What just happened?
        8. Time for action – adding text to TextBlock
          1. What just happened?
        9. Brushes
          1. The solid color brush
        10. Time for action – changing the color of the text
          1. What just happened?
          2. The gradient brush
        11. Time for action – changing the background color of the grid
          1. What just happened?
          2. Linear and radial gradients
          3. The tile brush
        12. Time for action – changing the background of the grid
          1. What just happened?
        13. Time for action – running the application
          1. What just happened?
        14. Time for action – integrating the project into Visual Studio
          1. What just happened?
        15. Using help and documentation
          1. Have a go hero
          2. Pop quiz
        16. Summary
      9. 2. Layout Panels
        1. Grid
        2. Time for action – creating a Run window using grid
          1. What just happened?
          2. Have a go hero
        3. Canvas
        4. Time for action – using canvas
          1. What just happened?
        5. StackPanel
        6. Time for action – using StackPanel
          1. What just happened?
        7. Other layout containers
        8. Building user interfaces
          1. Pop quiz
        9. Summary
      10. 3. Working with XAML
        1. The basics of XAML
        2. Time for action – taking a look at XAML code
          1. What just happened?
        3. Time for action – adding other namespaces in XAML
          1. What just happened?
        4. Naming elements
        5. The code-behind class
        6. Time for action – using a named element in a code-behind class
          1. What just happened?
          2. Default properties
          3. Expressing properties as attributes
        7. Time for action – adding elements in XAML by hand-coding
          1. What just happened?
          2. Non-attribute syntax
        8. Time for action – defining the gradient for the grid
        9. Comments in XAML
        10. Styles in XAML
          1. Defining a style
        11. Time for action – defining a style in XAML
          1. What just happened
          2. Using a style
        12. Time for action – using a style in XAML
          1. What just happened?
        13. Where to go from here
          1. Pop quiz
        14. Summary
      11. 4. Styles and Templates
        1. Creating and using styles
        2. An introduction to styles
        3. Time for action – creating a resource
          1. What just happened?
        4. The resource dictionary
        5. Simple styles
          1. Creating a simple styled control
            1. Changing colors
            2. Changing styles
            3. Changing control templates
        6. Style specification
          1. Specifying TargetType of a style
          2. Specifying the key for a style
        7. Application skinning
        8. Time for action – creating resource dictionaries
        9. Templates
        10. Editing the template
        11. Time for action – editing the template
          1. What just happened?
          2. Merged dictionaries
          3. Pop quiz
        12. Summary
      12. 5. Behaviors and States in Blend
        1. An introduction to behavior objects
        2. Adding built-in behaviors
          1. Types of built-in behaviors
            1. Animation behaviors
        3. Time for action – adding a storyboard
          1. Conditional behaviors
          2. Data state behaviors
          3. Motion behaviors
        4. Visual states
        5. Visual State Manager
        6. Time for action – modifying with visual states
          1. What just happened?
          2. Have a go hero
          3. Pop quiz
        7. Summary
      13. 6. Understanding Animation and Storyboards
        1. Understanding the animation service
        2. Storyboards
        3. Time for action – adding the storyboard
          1. What just happened?
          2. Timelines
          3. Timeline recording
          4. Properties
          5. Animation workspace
        4. Time for action – switching workspaces
          1. What just happened?
          2. Keyframe
        5. Time for action – using keyframes
          1. What just happened?
          2. Translation and rotation animation
        6. Time for action – using transforms
          1. What just happened?
          2. Have a go hero
          3. Animation recording symbol
          4. Keyframe editing
          5. The Timeline zoom feature
          6. Storyboard properties
        7. XAML for the storyboard
          1. Transition between keyframes
          2. Easing functions
        8. Time for action – using easing functions
          1. KeySpline
          2. What just happened?
          3. Have a go hero – using different easing effects
          4. Pop quiz
        9. Summary
      14. 7. Understanding DataBinding
        1. Understanding dependency properties
        2. Understanding the attached property
        3. An introduction to DataBinding
          1. DataBinding modes
          2. The DataBinding model
          3. DataBinding properties to control
        4. Time for action - DataBinding to one's own property
          1. What just happened?
          2. Have a go hero
          3. DataBinding control to control
        5. Time for action – DataBinding to properties of a different control
          1. What just happened?
          2. Using DataSource
        6. Time for action – DataBinding to DataSource as a collection
          1. What just happened?
        7. Time for action – DataBinding the background with SelectedValue
          1. What just happened?
          2. Pop quiz
        8. Summary
      15. 8. Vector Graphics
        1. An introduction to vector graphics
          1. Raster graphics
          2. Vector graphics
        2. Time for action – zooming in to a WPF control
          1. What just happened?
        3. Shapes
        4. Time for action – adding a shape
          1. What just happened?
        5. Importing graphics
        6. Time for action – importing graphics
          1. What just happened?
        7. The Line, Pen, and Pencil tools
          1. Line
          2. Pen
        8. Time for action – creating a shape using Pen
          1. What just happened?
          2. Pencil
        9. Paths
        10. Time for action – modifying a Path
          1. What just happened?
        11. BitmapScalingMode
        12. DPI awareness
          1. Pop quiz
        13. Summary
      16. 9. User Controls and Custom Controls
        1. User control or custom control – which to use and when
        2. Understanding and creating a user control
        3. Time for action – creating a user control that selects the background color
          1. What just happened?
        4. Time for action – adding event handlers
          1. What just happened?
        5. Time for action – adding a user control in a window
          1. What just happened?
        6. Understanding and creating custom controls
        7. Time for action – creating a custom control
          1. What just happened?
          2. Pop quiz
        8. Summary
      17. 10. Creating Windows Phone Apps
        1. Installing Windows Phone SDK
        2. An introduction to Windows Phone
        3. Guidelines for Windows Phone applications
        4. Understanding Windows Phone Emulator
        5. Time for action – Windows Phone Emulator
          1. What just happened?
        6. Creating a Windows Phone application
        7. Time for action – creating a Windows Phone application
          1. What just happened?
        8. Exploring the Device panel
        9. Testing the application before submitting to the store
        10. Time for action – testing our application
        11. Submitting our application to the store
        12. Time for action – submitting the application
          1. What just happened?
          2. Pop quiz
        13. Summary
      18. 11. Creating Windows 8 Store Apps
        1. Templates
        2. Creating Windows Store apps with XAML and C#
        3. Time for action – creating a Windows 8 Store app
          1. Have a go hero
        4. Submitting your app to Windows Store
        5. Time for action – submitting the app to Windows Store
          1. What just happened?
          2. Stages of app submission
          3. Pop quiz
        6. Summary
      19. A. Pop Quiz Answers
        1. Chapter 1, Getting Started with Blend
          1. Pop quiz
        2. Chapter 2, Layout Panels
          1. Pop quiz
        3. Chapter 3, Working with XAML
          1. Pop quiz
        4. Chapter 4, Styles and Templates
          1. Pop quiz
        5. Chapter 5, Behaviors and States in Blend
          1. Pop quiz
        6. Chapter 6, Understanding Animationand Storyboards
          1. Pop quiz
        7. Chapter 7, Understanding DataBinding
          1. Pop quiz
        8. Chapter 8, Vector Graphics
          1. Pop quiz
        9. Chapter 9, User Controls and Custom Controls
          1. Pop quiz
        10. Chapter 10, Creating Windows Phone Apps
          1. Pop quiz
        11. Chapter 11, Creating Windows 8 Store Apps
          1. Pop quiz
        12. Chapter 12, Prototyping Using SketchFlow
          1. Pop quiz
      20. Index