Hi Telerik,
I am having problem in chart legend like legend items are not aligning properly. i am using template to display chart and chart legend and i am using telerik RadWrapPanel
I am having problem in chart legend like legend items are not aligning properly. i am using template to display chart and chart legend and i am using telerik RadWrapPanel
to align the chart legend items and inside wrappanel legend items are displaying. i am attaching code snippet of legend style and screenshot for referrence and please help me how to solve this issue?
<Style x:Key=
"ChartLegendStyle"
TargetType=
"telerik:ChartLegend"
>
<Setter Property=
"Padding"
Value=
"0,0,0,0"
/>
<Setter Property=
"Margin"
Value=
"0,0,0,0"
/>
<Setter Property=
"FontSize"
Value=
"10"
/>
<Setter Property=
"BorderThickness"
Value=
"0"
/>
<Setter Property=
"Foreground"
Value=
"white"
/>
<Setter Property=
"Width"
Value=
"auto"
/>
<Setter Property=
"Background"
>
<Setter.Value>
<LinearGradientBrush EndPoint=
"1,0"
StartPoint=
"0,1"
SpreadMethod=
"Pad"
>
<GradientStop Color=
"#FF616161"
Offset=
"0"
/>
<GradientStop Color=
"#FF616161"
Offset=
"1"
/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property=
"HorizontalContentAlignment"
Value=
"Left"
/>
<Setter Property=
"VerticalContentAlignment"
Value=
"Stretch"
/>
<Setter Property=
"HorizontalAlignment"
Value=
"Left"
/>
<Setter Property=
"ItemsPanel"
>
<Setter.Value>
<ItemsPanelTemplate>
<telerik:RadWrapPanel Orientation=
"Horizontal"
HorizontalAlignment=
"Left"
UseLayoutRounding=
"True"
/>
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
</Style>