Hello Rodney Foley,
Thank you for pointing out this problem. We have fixed it internally but we missed the Q3 release, it will be out for SP1. Retemplating of the ChartTitle is needed for this to work.
First add this namespace:
Put this in your control resources:
<
mscorlib:Double
x:Key
=
"ChartTitleFontSize"
>11</
mscorlib:Double
>
<
FontWeight
x:Key
=
"ChartTitleFontWeight"
>Bold</
FontWeight
>
<
SolidColorBrush
x:Key
=
"ChartTitleForeground"
Color
=
"White"
/>
<
Thickness
x:Key
=
"ChartTitlePadding"
>7</
Thickness
>
<
LinearGradientBrush
x:Key
=
"ChartTitleBackground"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FF5B5B5B"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FF868686"
/>
<
GradientStop
Color
=
"#FF4F4F4F"
Offset
=
"0.42"
/>
<
GradientStop
Color
=
"#FF0E0E0E"
Offset
=
"0.43"
/>
</
LinearGradientBrush
>
<
Thickness
x:Key
=
"ChartTitleBorderThickness"
>1</
Thickness
>
<
SolidColorBrush
x:Key
=
"ChartTitleBorderBrush"
Color
=
"#FFB5B5B5"
/>
<
Thickness
x:Key
=
"ChartTitleOuterBorderThickness"
>1</
Thickness
>
<
SolidColorBrush
x:Key
=
"ChartTitleOuterBorderBrush"
Color
=
"Black"
/>
<
Style
x:Key
=
"CustomTitle2"
TargetType
=
"telerik:ChartTitle"
>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource ChartTitleBackground}"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"{StaticResource ChartTitleBorderBrush}"
/>
<
Setter
Property
=
"OuterBorderBrush"
Value
=
"{StaticResource ChartTitleOuterBorderBrush}"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"{StaticResource ChartTitleBorderThickness}"
/>
<
Setter
Property
=
"OuterBorderThickness"
Value
=
"{StaticResource ChartTitleOuterBorderThickness}"
/>
<
Setter
Property
=
"Padding"
Value
=
"{StaticResource ChartTitlePadding}"
/>
<
Setter
Property
=
"Foreground"
Value
=
"{StaticResource ChartTitleForeground}"
/>
<
Setter
Property
=
"FontSize"
Value
=
"{StaticResource ChartTitleFontSize}"
/>
<
Setter
Property
=
"FontWeight"
Value
=
"{StaticResource ChartTitleFontWeight}"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerik:ChartTitle"
>
<
Border
BorderThickness
=
"{TemplateBinding OuterBorderThickness}"
BorderBrush
=
"{TemplateBinding OuterBorderBrush}"
>
<
Border
Background
=
"{TemplateBinding Background}"
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
CornerRadius
=
"{TemplateBinding CornerRadius}"
>
<
ContentControl
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
Content
=
"{TemplateBinding Content}"
Margin
=
"{TemplateBinding Padding}"
Foreground
=
"{TemplateBinding Foreground}"
FontSize
=
"{TemplateBinding FontSize}"
FontStyle
=
"{TemplateBinding FontStyle}"
FontWeight
=
"{TemplateBinding FontWeight}"
FontFamily
=
"{TemplateBinding FontFamily}"
/>
</
Border
>
</
Border
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
after that just change the
ChartTitle xaml to this:
I hope this gets you started properly.
Best wishes,
Evgeni "Zammy" Petrov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the
Telerik Public Issue Tracking system and vote to affect the priority of the items