Deactivate MouseWheel in TimeLine

2 posts, 0 answers
  1. Manfred
    Manfred avatar
    53 posts
    Member since:
    Jan 2011

    Posted 24 Mar 2015 Link to this post


    is this possible?
    My problem is, that I use a list of timelines inside of a scrollviewer and I want to use Mouse Wheel only in the scrollviewer.
    But the user should be able to use zooming and scrolling in a timeline only by mouse drag, not with mouse wheel, because by scrolling in the scrollviewer, the view of the timeline also changed.

    any idea?

    Best regards
  2. Martin
    Martin avatar
    1048 posts

    Posted 25 Mar 2015 Link to this post

    Hello Manfred,

    To disable the scrolling and zooming through the mouse wheel you can subscribe for the RadTimeline's PreviewMouseWheel event and set the Handled property of its arguments to True in the event handler.
    private void timeline_PreviewMouseWheel(object sender, MouseWheelEventArgs e)
        e.Handled = true;

    I hope this helps.


    See What's Next in App Development. Register for TelerikNEXT.

  3. DevCraft banner
Back to Top