Silverlight Styling
Silverlight has a powerful model to customize the look and feel of controls.
For example, you can alter the looks of a Button control by not supplying just a text for its content property, but an elipse with text in it. That way, the button will not be rendered as a default button, but use your own supplied style.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
To be able to easily reuse your custom template, you can define a style in the App.xaml and manually set the style property on the button control. This works similar like CSS.<o:p></o:p>
<o:p> </o:p>
Example template to show the content of a button as an image (App.xaml):<o:p></o:p>
<Style x:Key="ImageButtonStyle" TargetType="Button"><o:p></o:p>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center">
<ContentPresenter.Content>
<Image Source="{TemplateBinding Content}"></Image>
</ContentPresenter.Content>
</ContentPresenter>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>