Book Image

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

By : Abhishek Shukla
Book Image

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

By: Abhishek Shukla

Overview of this book

<p>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.</p> <p>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.</p> <p>Towards the end, you will be aware of the various capabilities that are available in Blend out of the box.</p>
Table of Contents (19 chapters)
Blend for Visual Studio 2012 by Example Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – editing the template


To edit the template of a button, perform the following steps:

  1. To edit the template of a button, we need to right-click on the button and select Edit Template | Edit Current. This action is described in great detail in the following screenshot:

  2. We will see the components of the template. We also notice that the presentation of the button is made up of a border with a content presenter in it.

  3. Change Layout Type from Border to Grid and rename Border to LayoutGrid. This is shown in the following screenshot:

  4. Go to the Assets panel, search for Ellipse, and select and drag Ellipse in the grid above contentPresenter. This is depicted in the following screenshot:

  5. Select LayoutGrid in the Objects and Timeline panel and Reset the Background property in the Property panel. This is amply conveyed to you by the following screenshot:

  6. Select Ellipse in the Objects and Timeline panel, and then change the following properties:

    • Set Height and Width of Ellipse to auto

    • Set HorizontalAlignment...