All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
xmlns:controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
xmlns:charting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting">
<
UserControl.Resources
>
SolidColorBrush
x:Key
=
"LegendForeground"
Color
"#FF000000"
/>
LinearGradientBrush
"LegendBackground"
EndPoint
"1.96,0.5"
StartPoint
"-0.96,0.5"
GradientStop
"#FFB5B5B5"
"#FFF0F0F0"
Offset
"0.5"
</
"LegendBorderBrush"
"#FF848484"
Thickness
"LegendBorderThickness"
>1</
Style
"CustomLegend"
TargetType
"charting:ChartLegend"
Setter
Property
"Foreground"
Value
"{StaticResource LegendForeground}"
"Background"
"{StaticResource LegendBackground}"
"Padding"
"10,10,10,5"
"Margin"
"0"
"BorderBrush"
"{StaticResource LegendBorderBrush}"
"BorderThickness"
"{StaticResource LegendBorderThickness}"
"TitleFontWeight"
"Bold"
"Template"
Setter.Value
ControlTemplate
Border
CornerRadius
"30"
Background
"{TemplateBinding Background}"
BorderBrush
"{TemplateBinding BorderBrush}"
BorderThickness
"{TemplateBinding BorderThickness}"
Grid
Margin
"{TemplateBinding Padding}"
Grid.RowDefinitions
RowDefinition
Height
"Auto"
"*"
ContentControl
Foreground
"{TemplateBinding Foreground}"
FontWeight
"{TemplateBinding TitleFontWeight}"
Content
"{TemplateBinding Header}"
ContentTemplate
"{TemplateBinding HeaderTemplate}"
ItemsPresenter
Grid.Row
"1"
"ItemsPanel"
ItemsPanelTemplate
controls:RadWrapPanel
Orientation
"{Binding ItemsPanelOrientation}"
"HeaderTemplate"
DataTemplate
TextBlock
FontSize
"12"
Padding
"0,0,0,2"
HorizontalAlignment
"Left"
Width
Text
"{Binding}"
TextWrapping
"Wrap"
RadChart1.DefaultView.ChartLegend.Style =
this
.Resources[
]
as
Style;