In his previous post about buttons and content controls, Pete Brown showed how to do customization using the
content property of a button. In this
post, he covers styling and builds up the background needed to tackle templating.
Styles in WPF and Silverlight are similar in concept to styles in
CSS. They are more powerful in terms of what they can control, but
overall the concept is the same.
Like HTML/CSS, the most basic way to set your control’s properties is to do it using regular property statements in the markup.