Profile Picture

Controlling the size and location of charts, legends etc in WPF

Posted By Richard Eustace 3 Years Ago

Controlling the size and location of charts, legends etc in WPF

Author
Message
Richard Eustace
Question Posted 3 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 5, Visits: 17
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




Similar Topics


Reading This Topic