Crosshair label update

3 posts, 0 answers
  1. Flemming
    Flemming avatar
    12 posts
    Member since:
    Aug 2016

    Posted 02 Sep Link to this post

    I have a live chart with a DateTimeContinuousAxis axis and a crosshair.

    When new data arrives and the chart area scrolls the crosshair info does update until the mouse is moved.

    Is there a way to update the crosshair labels from code?

    /Flemming Rosenbrandt

  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 06 Sep Link to this post

    Hello Flemming,

    In order to update the crosshair labels you can reset their visibility.
    this.crosshairBehavior.VerticalLineLabelVisibility = Visibility.Collapsed;
    this.crosshairBehavior.VerticalLineLabelVisibility = Visibility.Visible;
    this.crosshairBehavior.HorizontalLineLabelVisibility = Visibility.Collapsed;
    this.crosshairBehavior.HorizontalLineLabelVisibility = Visibility.Visible;

    I hope this helps.

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Flemming
    Flemming avatar
    12 posts
    Member since:
    Aug 2016

    Posted 06 Sep in reply to Martin Link to this post

    Thanks - it works fine :)
Back to Top