concept template in category silverlight

This is an excerpt from Manning's book Silverlight 4 in Action: Silverlight 4, MVVM, and WCF RIA Services.
Local value— Local values are specified directly in the markup and are accessed via the CLR property wrappers for the dependency property. Because local values are higher in precedence than styles and templates, they’re capable of overriding values such as the font style or foreground color defined in the default style for a control. Templated properties— Used specifically for elements created within a control or data template, their value is taken from the template itself.
Listing 19.12. MainPage markup with an instance of our report and template
<local:EmployeeReport x:Name="Report"> <local:EmployeeReport.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="40" /> <ColumnDefinition Width="180" /> <ColumnDefinition Width="180" /> <ColumnDefinition Width="210" /> <ColumnDefinition Width="100" /> <ColumnDefinition Width="70" /> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Text="{Binding EmployeeID}" /> <StackPanel Grid.Column="1" Orientation="Horizontal"> <TextBlock Text="{Binding LastName}" /> <TextBlock Text=", " /> <TextBlock Text="{Binding FirstName}" /> </StackPanel> <TextBlock Grid.Column="2" Text="{Binding Title}" /> <TextBlock Grid.Column="3" Text="{Binding EmailAddress}" /> <TextBlock Grid.Column="4" Text="{Binding Phone}" /> <TextBlock Grid.Column="5" Text="{Binding HireDate, StringFormat='{}{0:d}'}" /> </Grid> </DataTemplate> </local:EmployeeReport.ItemTemplate> </local:EmployeeReport>
Creating individual templates can be useful when you want to give individualized attention to your controls; templates can also be useful for creating a truly unique yet consistent user experience. To help make it easier to deliver a consistent user experience, Silverlight allows you to define a ControlTemplate as part of a Style (see listing 23.18).
When you build a control template, it’ll ultimately be used with a Control. Every Control in Silverlight exposes a property called Template. This property is a ControlTemplate that lets you take complete control over what a Control looks like. In a sense, when you set this property, you’re resetting the control’s appearance, giving you a clean slate to work with. From there, you can make a Control look like whatever you want it to look like. For instance, listing 23.13 changes the look of a Button to make it look more like a sphere.