Is there a way to stop the mouse wheel scrolling from changing the value of the numeric spinner?
I can't see anything in the documentation related to this.
Thanks
Simon
3 Answers, 1 is accepted
0
Ivaylo Gergov
Telerik team
answered on 03 Dec 2013, 09:34 AM
Hello Simon,
Thank you for contacting us.
The RadNumericBox executes this logic in a method that is called before the PointerWheelChanged event and the control marks the PointerRoutedEventArgs.Handled as true. So, in order to achieve the desired result, you will need to implement a class that derives from the RadNumericBox and override the OnPointerWheelChanged method where you should not call the base method.
I tried as you suggested but am now getting an error thrown from the App (in App.g.i.cs) which crashes the app.
{"No installed components were detected.\r\n\r\nCannot apply a Style with TargetType 'Telerik.UI.Xaml.Controls.Input.RadNumericBox' to an object of type 'Windows.UI.Xaml.IDependencyObject'."}
I am changing many styles in code behind, but the target types are actually "NumericTextBox" and "InlineButton" not "RadNumericBox".
This workaround may not work for me.
0
Ivaylo Gergov
Telerik team
answered on 04 Dec 2013, 10:06 AM
Hello Simon,
Could you please send me a sample project that reproduces this error because I was not able to reproduce it on my side.
I am looking forward to your reply. Thank you for understanding.