Problem with CustomGridLine

2 posts, 0 answers
  1. Randy Minder
    Randy Minder avatar
    20 posts
    Member since:
    Aug 2009

    Posted 12 Dec 2011 Link to this post

    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:CustomGridLine YIntercept="{Binding Path=TargetThickness}" Visibility="Visible" Stroke="Red" StrokeThickness="
    The problem is that it's not displaying the value contained in the TargetThickness property. Is the syntax not correct?
  2. Petar Marchev
    Petar Marchev avatar
    996 posts

    Posted 13 Dec 2011 Link to this post

    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.

    Petar Marchev
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top