Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
615
How to lay out legend items horizontally instead of vertically
posted

I have a legend whereby the legend items are stacked vertically. I want to lay them out horizontally. When I use Snoop, I can identify a StackPanel and change the orientation to horizontal to achieve the look I want.

But I cannot find that StackPanel in code anywhere.

How can I change this StackPanel layout in code?

Parents
  • 17475
    Verified Answer
    Offline posted

    Hello Carol,

    Thank you for contacting Infragistics.

    I have been looking into your case. What I could suggest you here is setting the Orientation property of the Legend to “Horizontal” to achieve the look you want instead of using StackPanel control.

    <ig:XamDataChart Legend="{Binding ElementName=Legend}">

    <ig:Legend Orientation="Horizontal" x:Name="Legend"/>

     

    Please do not hesitate to contact me if you have any other questions or concerns.

Reply Children