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

Deactivate MouseWheel in TimeLine

1 Answer 46 Views
TimeLine
This is a migrated thread and some comments may be shown as answers.
Manfred
Top achievements
Rank 2
Manfred asked on 24 Mar 2015, 12:37 PM
Hi,

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

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 25 Mar 2015, 07:30 AM
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.

Regards,
Martin
Telerik
 

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

 
Tags
TimeLine
Asked by
Manfred
Top achievements
Rank 2
Answers by
Martin Ivanov
Telerik team
Share this question
or