Blend for Visual Studio 2012 by Example: Beginner's Guide

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

Blend for Visual Studio 2012 by Example: Beginner's Guide

Beginner's Guide
Abhishek Shukla

Leverage the power of Blend to create, modify, and reuse applications and components for Windows using a practical, hands-on guide
$43.99
$54.99
RRP $43.99
RRP $54.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849693882
Paperback226 pages

About This Book

  • Discover how to add storyboard and animation to the applications
  • Find your way across the Blend IDE
  • A practical approach to using SketchFlow to create, package, and communicate designs before actual implementation

Who This Book Is For

This book is aimed at developers and designers who are new to Blend and looking to learn Blend, not just practically, but also conceptually. This book does not assume any knowledge about Blend on the part of developers; however, some experience in design or development might be useful in understanding the concepts faster, but this book explains everything very simply so that you are able to understand everything with little or no effort.

Table of Contents

Chapter 1: Getting Started with Blend
Blend for Visual Studio 2012
Downloading Blend
Time for action – installing Microsoft Blend
Creating your first application in Blend
Time for action – creating a project in Blend using an existing template
The fundamental pieces of the Blend IDE
Time for action – adding TextBlock
Time for action – adding text to TextBlock
Brushes
Time for action – changing the color of the text
Time for action – changing the background color of the grid
Time for action – changing the background of the grid
Time for action – running the application
Time for action – integrating the project into Visual Studio
Using help and documentation
Summary
Chapter 2: Layout Panels
Grid
Time for action – creating a Run window using grid
Canvas
Time for action – using canvas
StackPanel
Time for action – using StackPanel
Other layout containers
Building user interfaces
Summary
Chapter 3: Working with XAML
The basics of XAML
Time for action – taking a look at XAML code
Time for action – adding other namespaces in XAML
Naming elements
The code-behind class
Time for action – using a named element in a code-behind class
Time for action – adding elements in XAML by hand-coding
Time for action – defining the gradient for the grid
Comments in XAML
Styles in XAML
Time for action – defining a style in XAML
Time for action – using a style in XAML
Where to go from here
Summary
Chapter 4: Styles and Templates
Creating and using styles
An introduction to styles
Time for action – creating a resource
The resource dictionary
Simple styles
Style specification
Application skinning
Time for action – creating resource dictionaries
Templates
Editing the template
Time for action – editing the template
Summary
Chapter 5: Behaviors and States in Blend
An introduction to behavior objects
Adding built-in behaviors
Time for action – adding a storyboard
Visual states
Visual State Manager
Time for action – modifying with visual states
Summary
Chapter 6: Understanding Animation and Storyboards
Understanding the animation service
Storyboards
Time for action – adding the storyboard
Time for action – switching workspaces
Time for action – using keyframes
Time for action – using transforms
XAML for the storyboard
Time for action – using easing functions
Summary
Chapter 7: Understanding DataBinding
Understanding dependency properties
Understanding the attached property
An introduction to DataBinding
Time for action - DataBinding to one's own property
Time for action – DataBinding to properties of a different control
Time for action – DataBinding to DataSource as a collection
Time for action – DataBinding the background with SelectedValue
Summary
Chapter 8: Vector Graphics
An introduction to vector graphics
Time for action – zooming in to a WPF control
Shapes
Time for action – adding a shape
Importing graphics
Time for action – importing graphics
The Line, Pen, and Pencil tools
Time for action – creating a shape using Pen
Paths
Time for action – modifying a Path
BitmapScalingMode
DPI awareness
Summary
Chapter 9: User Controls and Custom Controls
User control or custom control – which to use and when
Understanding and creating a user control
Time for action – creating a user control that selects the background color
Time for action – adding event handlers
Time for action – adding a user control in a window
Understanding and creating custom controls
Time for action – creating a custom control
Summary
Chapter 10: Creating Windows Phone Apps
Installing Windows Phone SDK
An introduction to Windows Phone
Guidelines for Windows Phone applications
Understanding Windows Phone Emulator
Time for action – Windows Phone Emulator
Creating a Windows Phone application
Time for action – creating a Windows Phone application
Exploring the Device panel
Testing the application before submitting to the store
Time for action – testing our application
Submitting our application to the store
Time for action – submitting the application
Summary
Chapter 11: Creating Windows 8 Store Apps
Templates
Creating Windows Store apps with XAML and C#
Time for action – creating a Windows 8 Store app
Submitting your app to Windows Store
Time for action – submitting the app to Windows Store
Summary

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

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.

Authors

Table of Contents

Chapter 1: Getting Started with Blend
Blend for Visual Studio 2012
Downloading Blend
Time for action – installing Microsoft Blend
Creating your first application in Blend
Time for action – creating a project in Blend using an existing template
The fundamental pieces of the Blend IDE
Time for action – adding TextBlock
Time for action – adding text to TextBlock
Brushes
Time for action – changing the color of the text
Time for action – changing the background color of the grid
Time for action – changing the background of the grid
Time for action – running the application
Time for action – integrating the project into Visual Studio
Using help and documentation
Summary
Chapter 2: Layout Panels
Grid
Time for action – creating a Run window using grid
Canvas
Time for action – using canvas
StackPanel
Time for action – using StackPanel
Other layout containers
Building user interfaces
Summary
Chapter 3: Working with XAML
The basics of XAML
Time for action – taking a look at XAML code
Time for action – adding other namespaces in XAML
Naming elements
The code-behind class
Time for action – using a named element in a code-behind class
Time for action – adding elements in XAML by hand-coding
Time for action – defining the gradient for the grid
Comments in XAML
Styles in XAML
Time for action – defining a style in XAML
Time for action – using a style in XAML
Where to go from here
Summary
Chapter 4: Styles and Templates
Creating and using styles
An introduction to styles
Time for action – creating a resource
The resource dictionary
Simple styles
Style specification
Application skinning
Time for action – creating resource dictionaries
Templates
Editing the template
Time for action – editing the template
Summary
Chapter 5: Behaviors and States in Blend
An introduction to behavior objects
Adding built-in behaviors
Time for action – adding a storyboard
Visual states
Visual State Manager
Time for action – modifying with visual states
Summary
Chapter 6: Understanding Animation and Storyboards
Understanding the animation service
Storyboards
Time for action – adding the storyboard
Time for action – switching workspaces
Time for action – using keyframes
Time for action – using transforms
XAML for the storyboard
Time for action – using easing functions
Summary
Chapter 7: Understanding DataBinding
Understanding dependency properties
Understanding the attached property
An introduction to DataBinding
Time for action - DataBinding to one's own property
Time for action – DataBinding to properties of a different control
Time for action – DataBinding to DataSource as a collection
Time for action – DataBinding the background with SelectedValue
Summary
Chapter 8: Vector Graphics
An introduction to vector graphics
Time for action – zooming in to a WPF control
Shapes
Time for action – adding a shape
Importing graphics
Time for action – importing graphics
The Line, Pen, and Pencil tools
Time for action – creating a shape using Pen
Paths
Time for action – modifying a Path
BitmapScalingMode
DPI awareness
Summary
Chapter 9: User Controls and Custom Controls
User control or custom control – which to use and when
Understanding and creating a user control
Time for action – creating a user control that selects the background color
Time for action – adding event handlers
Time for action – adding a user control in a window
Understanding and creating custom controls
Time for action – creating a custom control
Summary
Chapter 10: Creating Windows Phone Apps
Installing Windows Phone SDK
An introduction to Windows Phone
Guidelines for Windows Phone applications
Understanding Windows Phone Emulator
Time for action – Windows Phone Emulator
Creating a Windows Phone application
Time for action – creating a Windows Phone application
Exploring the Device panel
Testing the application before submitting to the store
Time for action – testing our application
Submitting our application to the store
Time for action – submitting the application
Summary
Chapter 11: Creating Windows 8 Store Apps
Templates
Creating Windows Store apps with XAML and C#
Time for action – creating a Windows 8 Store app
Submitting your app to Windows Store
Time for action – submitting the app to Windows Store
Summary

Book Details

ISBN 139781849693882
Paperback226 pages
Read More