This is a migrated thread and some comments may be shown as answers.

[Solved] How can I align controls to a component of the chart?

1 Answer 43 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anthony
Top achievements
Rank 1
Anthony asked on 15 Jun 2014, 10:34 AM
I'd like to add some sliders to the same page as my chart control, but have them aligned to match the x axis and y-axis.

Any suggestions on how to approach this?

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 18 Jun 2014, 03:08 PM
Hello Anthony,

Thank you for contacting us.

With the PlotAreaClip property of the chart you can get the coordinates of the plot area (rectangle defined by the axes) relative to the chart element. Thus you can calculate the distance you have to displace an element in order to be aligned with the axes. I have attached a sample project for demonstration. Note that the PlotAreaClip property is set when the chart is loaded.

I hope this helps. Please, let us know if you have further questions.

Regards,
Rosy Topchiyska
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart for XAML
Asked by
Anthony
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or