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
1495
XamDataChart Legend lines
posted

Hi Team,

We are using XamDataChart for display data, we use Legend with following settings

<ig:Legend x:Name="AMLegend" Grid.Row="2" Grid.Column="1" BorderBrush="Transparent" Background="Transparent" Foreground="White" HorizontalAlignment="Right" VerticalAlignment="Top"/>

How we get rid of the red encircled lines from left and right side of legend ?

Please see attached snapshot.

Parents
No Data
Reply
  • 30945
    Offline posted

    Hello Elinder,

     

    Thank you for your post. I have been looking into the screenshot that you have attached and in the Legend’s template, there are two rectangles that are taking this space and also the Margin of the Legend is set to 10 by default. I have created a sample application for you, that shows how you can remove this space, by re-templating the Legend and reoving rhe Rectangles and the ColumnDefinitions for them.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir, MCPD

    Developer Support Supervisor - XAML

    Infragistics

    www.infragistics.com/support

    StackedColumnsAndLegend.zip
Children