locked
Why oh why is there no native support for the mousewheel? RRS feed

  • Question

  • What were they thinking when they designed Silverlight controls that allow scrolling (like grids, lists, dropdowns, etc.) BUT FORGOT TO ADD SUPPORT FOR THE MOUSEWHEEL?

    Why do I have to dig around to find a "behavior" to do this when it should have been baked in at the start?
    Don't they use mice that have a mousewheel over at MS?
    Did they think that we wouldn't miss this feature?

    Friday, September 25, 2009 4:27 PM

Answers

  • Mouse wheel support was added in SL 4. The UIElement class has a MouseWheel event.

     

    http://msdn.microsoft.com/en-us/library/ms596686(v=VS.95).aspx

    Sunday, July 17, 2011 5:52 PM
    Moderator

All replies

  • Good Day Mike,

    I can’t say for sure but it was probably a business decision that conceder factors like the cost of development, budget and time constraints.  I think that mouse wheel implementation has cross platform issues that knocked it down the priority list; it wasn’t supported with an API at all until SL3.

    This is just a guess on my part, but I’m sure Microsoft developers have mouse wheels and that they knew it was a feature that everyone would want. Therefore it is logical to conclude that they either did it for a valid business reason or just to tick you off. I think it the former.

    Have a good day.

    Mike Greenway

    Friday, September 25, 2009 7:04 PM
  • Can you consider using a technique like http://compiledexperience.com/blog/posts/Updated-Silverlight-Mouse-Wheel-Behavior, http://silverlightplayground.boschin.it/post/2009/07/10/Silverlight-30-RTW-An-universal-MouseWheelScrolling-behavior.aspx

    We are very well aware of the need for this feature, and I would not think this is too far away as a standard feature of a ListBox :).

    Thanks,
    Unni


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Saturday, September 26, 2009 7:30 PM
  • Thanks for the feedback Unni.

    It's just frustrating to me that something as basic as mousewheel scrolling is not there already. You mention that adding this functionality to a ListBox is not far off. What about a datagrid, dropdown, etc. ? I shouldn't have to point this out, but, I hope you plan to address these as well.

    Regards,
    Mike
    Monday, September 28, 2009 1:48 PM
  • Yes, it will def. be for more controls than just the ListBox. I am trying to find out about DataGrid in particular.

    Thanks,
    Unni
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, September 28, 2009 5:45 PM
  • It is now 2011, July. VS2010 is published. But there is still no native support for MouseWheel event. I do not see it in the tab "Properties".... Why? And when will this event be included? Please answer. if it is not a secret...
    Saturday, July 16, 2011 1:04 PM
  • Mouse wheel support was added in SL 4. The UIElement class has a MouseWheel event.

     

    http://msdn.microsoft.com/en-us/library/ms596686(v=VS.95).aspx

    Sunday, July 17, 2011 5:52 PM
    Moderator