Hi,
I am trying to insert a User Control in the xamDataChart where the control needs to be displayed along with the xAxis of the chart coctrol as shown in the attached image. This user control is derived from "FrameworkElement" provides a scaling measurement that needs to be present along with the xAxis of the chart. Here our requirement is to make sure that both the chart xAxis and the UserControl needs to be in sync (as shown in the pic) always even when the chart is resized.
Is it possible to place the usercontrol along with the xaxis? or can we replace the xaxis scaling with this user control?
kindly suggest a way to achieve this or provide a sample which will help to do this.
Hello Manuj,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style for the XamDataChart and add a Button in its Template, but you can add your custom UserControl there. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan,
Thank you for the sample.
Since my UserControl is a scaling control, i want it to be placed exactly from where the chart drawing area begins and not from the chart YAxis label area as given in the sample. Please refer the attached image for how i want to display the control.