RadLegend Items listed horizontally instead of vertically

3 posts, 0 answers
  1. Mark
    Mark avatar
    16 posts
    Member since:
    Sep 2012

    Posted 11 Jul 2013 Link to this post

    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. Mark
    Mark avatar
    16 posts
    Member since:
    Sep 2012

    Posted 11 Jul 2013 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jonah
    Jonah avatar
    21 posts
    Member since:
    Oct 2012

    Posted 11 Dec 2015 in reply to Mark Link to this post

    Kudos, worked for me
Back to Top