<
UserControl
x:Class
=
"CustomTicks.MainPage"
xmlns
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x
"http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d
"http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc
"http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
"d"
d:DesignHeight
"300"
d:DesignWidth
"400"
>
UserControl.Resources
DataTemplate
x:Key
"TickLabelAppearance"
TextBlock
HorizontalAlignment
"Center"
FontFamily
"{Binding Path=Properties.FontFamily}"
FontSize
"{Binding Path=Properties.FontSize}"
Foreground
"{Binding Path=Properties.Foreground}"
Margin
"4,2,4,2"
TextBlock.Text
Binding
Binding.Converter
telerik:LabelFormatConverter
/>
</
Style
"TickMarkStyle"
TargetType
"telerik:CustomTickMark"
Setter
Property
"Length"
Value
"0.075"
"TickWidth"
"0.2"
"FontSize"
"14"
"Foreground"
"White"
"Template"
Setter.Value
ControlTemplate
Grid
"ItemTemplate"
"{StaticResource TickLabelAppearance}"
x:Name
"LayoutRoot"
Background
telerik:RadGauge
Width
"200"
Height
telerik:LinearGauge
telerik:LinearScale
MajorTicks
"4"
telerik:LinearScale.Label
telerik:LabelProperties
"Transparent"
telerik:TickList
telerik:CustomTickMark
"0"
Format
"4-15-11"
"{StaticResource TickMarkStyle}"
"50"
"4-17-11"
"100"
"4-19-11"