I have been going around in circles trying to size charts within panels using WPF! There is a general lack of proper examples and documentation.
I have a chart control in a window
<Wpf:NChartControl x:Name="nChartControl1" Margin="5,0,0,5" Width="800" Height="500" HorizontalAlignment="Left" VerticalAlignment="Top"/>
I have a CartesianChart and a legend within that. So, for example, how do I locate the legend on the right hand side half way up centered around the vertical mid point of the control. There should be fixed gap between the right hand edge of the legend and the right hand edge of the chartcontrol. The chart should be 50% of the height of the chart control and 80% of the width, again located around midpoint of the height but a fixed distance from the lefthand edge of the control?
Thanks
Rich