P. 1
silverlight 2 - expression blend - styles and templates

silverlight 2 - expression blend - styles and templates

|Views: 3,435|Likes:
Published by Jonathan Bates
Microsoft put out these five micro-topic quick-start guides to help developers using Expression Blend get accustomed to the second incarnation of MSFT's intriguing suite for RIA/Silverlight content and applications. The topics are:
- Quick Start Intro
- About Expression Blend
- Working with Text
-

Microsoft put out these five micro-topic quick-start guides to help developers using Expression Blend get accustomed to the second incarnation of MSFT's intriguing suite for RIA/Silverlight content and applications. The topics are:
- Quick Start Intro
- About Expression Blend
- Working with Text
- Styles and Templates
- The Workspace
Microsoft put out these five micro-topic quick-start guides to help developers using Expression Blend get accustomed to the second incarnation of MSFT's intriguing suite for RIA/Silverlight content and applications. The topics are:
- Quick Start Intro
- About Expression Blend
- Working with Text
-

Microsoft put out these five micro-topic quick-start guides to help developers using Expression Blend get accustomed to the second incarnation of MSFT's intriguing suite for RIA/Silverlight content and applications. The topics are:
- Quick Start Intro
- About Expression Blend
- Working with Text
- Styles and Templates
- The Workspace

More info:

Published by: Jonathan Bates on Jun 28, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/01/2013

pdf

text

original

The SimpleButton control template consists of the following items:

A Grid layout panel, which is used to hold the multiple child elements within the button. The Grid is also used
because it makes it easier for you to add more elements to the template. For example, if the root element was a
Border and you tried to add another element, the other element would replace the ContentPresenter element

Tip:

Control templates are wrapped inside styles so that the style that is applied to a control includes both the appearan
(parts) and the behavior for the control. This is important to remember when choosing between Edit a Copy and E
Template.

SimpleButton

Page 26of 65

Styles and templates

6/16/2009

file://C:\Windows\Temp\~hhD0B.htm

because Border can only have a single child.

A Border element, which is used because it includes a BorderThickness property that can be template-bound to
the BorderThickness property of the button control to which the template is applied.

A ContentPresenter, which is used to display the Content property of the button to which the template is applied.
This element must be present to show the content of the button.

Objects view: The basic parts (template) of a SimpleButton control

Back to top

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->