This is a migrated thread and some comments may be shown as answers.

RadLegend Items listed horizontally instead of vertically

2 Answers 127 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 11 Jul 2013, 06:56 PM
I have a RadLegend associated with a RadCartesianChart. I would like the items associated with the legend to be listed horizontally instead of vertically. How do I do that?

Here's my XAML for my legend:
<telerik:RadLegend Items="{Binding LegendItems, ElementName=ProfitChart}"/>

Thank you,
Mark

2 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 11 Jul 2013, 07:02 PM
I figured it out.

<telerik:RadLegend Items="{Binding LegendItems, ElementName=ProfitChart}">
                <telerik:RadLegend.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal"/>
                    </ItemsPanelTemplate>
                </telerik:RadLegend.ItemsPanel>
            </telerik:RadLegend>

Thanks anyway
0
Jonah
Top achievements
Rank 1
answered on 11 Dec 2015, 05:13 PM
Kudos, worked for me
Tags
Chart
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Jonah
Top achievements
Rank 1
Share this question
or