Adding a Control Header
Many of the Toolkit controls allow you to customize the title text displayed above the control using a Header
property. In addition, the HeaderTemplate
property allows you to customize how the Header
content is displayed. The following example provides a custom header template for a TimePicker
:
<toolkit:TimePicker Value="{Binding Time, Mode=TwoWay}" Header="time"> <toolkit:TimePicker.HeaderTemplate> <DataTemplate> <Border BorderThickness="2" BorderBrush="Yellow" Padding="10"> <TextBlock Text="{Binding}" /> </Border> </DataTemplate> </toolkit:TimePicker.HeaderTemplate></toolkit:TimePicker>
The DataTemplate
places the Header
text ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.