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

Problem with CustomGridLine

1 Answer 30 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Randy Minder
Top achievements
Rank 1
Randy Minder asked on 12 Dec 2011, 09:39 PM
I am using RadChart Q3 2011. I am attempting to bind the YIntercept to a value coming from my view model. I have the following XAML:

<charting:ChartArea.Annotations>
   <charting:CustomGridLine YIntercept="{Binding Path=TargetThickness}" Visibility="Visible" Stroke="Red" StrokeThickness="
</charting:ChartArea.Annotations>

The problem is that it's not displaying the value contained in the TargetThickness property. Is the syntax not correct?

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 13 Dec 2011, 01:05 PM
Hello Randy,

Everything seems to be fine with your XAML. I have attached a simple project to demonstrate a very simple use of the custom grid line with the YIntercept property bound to the TargetThickness property of the MainWindow.

Please note that the YIntercept of the custom gridline is of type double. Also have in mind that the TargetThickness needs to be a property and not just a field.

This topic on Custom Gridlines may also be of help to you.

Greetings,
Petar Marchev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Chart
Asked by
Randy Minder
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or