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

[Solved] Legend Orientation

1 Answer 49 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jon
Top achievements
Rank 1
Jon asked on 08 Aug 2013, 02:33 AM

Currently, my legend is formatted along a vertical orientation:

Line 1

Line 2

Line 3

How can I change the orientation to be horizontal?

Line 1               Line 2        Line 3

Cheers, Jon

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 08 Aug 2013, 11:07 AM
Hi Jon,

Thank you for your interest.

By default, the ItemsPanel of the RadLegendCotnrol is a WrapGrid with WrapGrid.Orientation = "Vertical". If you wish to change this, you can use the RadLegendControl.ItemsPanel property to change its ItemsPanelTemplate. For example: 
<telerikPrimitives:RadLegendControl.ItemsPanel>
    <ItemsPanelTemplate>
        <StackPanel Orientation="Horizontal"/>
    </ItemsPanelTemplate>
</telerikPrimitives:RadLegendControl.ItemsPanel>

Here you can find the customization options that the RadLegendControl provides - http://www.telerik.com/help/windows-8-xaml/radchart-legendcontrol-properties.html.

I hope this helps. Feel free to contact us if you need further assistance.

 

Regards,
Ivaylo Gergov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Grid for XAML
Asked by
Jon
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or