I am working on infragistics XamDataChart in WPF. I want to create 2 legends in parallel. I am able to do so, but there is lots of space coming between these 2 legends. i want them to be adjacent to each other such that there is no space between. So visually it look like a 2 column legend.
Code is very simple
<ScrollViewer VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,-44,140,0" VerticalScrollBarVisibility="Hidden">
<StackPanel Orientation="Horizontal">
<ig:Legend x:Name="xamLegend1" Orientation="Vertical" FontFamily="Calibri" FontSize="12" Foreground="#FFFFFF" Background="#34678F" ></ig:Legend>
<ig:Legend x:Name="xamLegend2" Orientation="Vertical" FontFamily="Calibri" FontSize="12" Foreground="#FFFFFF" Background="#34678F" ></ig:Legend>
</StackPanel>
Use the following example to help with the additional spaces