Control Templates in Silverlight
Silverlight enables to customize controls in several ways. We can customize a control by modifying the default template. So it will modify the visual appearance of an existing control or a new one.
Customizing a Control
Locally inline definition
<Button IsHitTestVisible="True" IsTabStop="False" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" >
<Button.Template>
<ControlTemplate TargetType="Button">
<Grid Background="Transparent"/>
</ControlTemplate>
</Button.Template>
</Button>Control template defined in resources
Control Template definition in resource style
Silverlight templated control
PreviousHow to enable Control Templates in the migrated applicationNextCurrent Conversion and required manual changes to enable the control templates
Last updated
Was this helpful?