How to implement two ListBox ScrollViewer synchronization

4 posts, 1 answers
  1. Yuanhong
    Yuanhong avatar
    5 posts
    Member since:
    Jan 2019

    Posted 14 Jan Link to this post

    This is probably just me not knowing how to implement two ListBox ScrollViewer synchronization?The practice in wpf is seting VerticalOffset or HorizontalOffset  in ScrollViewer.ScrollChanged event.But,telerik ScrollViewer 's VerticalOffset or HorizontalOffset Property setter is private.How do I implement this?

    Any help would be appreciated.


  2. Answer
    Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    405 posts

    Posted 16 Jan Link to this post

    Hello Yuanhong,

    I tested the described approach on my end and it is working as expected. I am attaching the sample project which i used for testing purposes. Please, check it out and let me know if it helps.

    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Yuanhong
    Yuanhong avatar
    5 posts
    Member since:
    Jan 2019

    Posted 16 Jan Link to this post

    Hi Vladimir,

    Thanks. That works.But, I have a new problem about Diagram' scrollBar.I try to find Diagram' scrollBar and setting it's VerticalOffset.How should I do?

    Best.

  4. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    405 posts

    Posted 18 Jan Link to this post

    Hello Yuanhong,

    I am glad to hear that the suggested approach works for you.

    As for your other question, my colleague has already answered in the other forum thread that you have opened: How to find diagram's scrollViewer. May I kindly ask you to continue the discussion there in order to avoid duplicating replies?

    Thank you in advance for your understanding.
     
    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top