> > >
Mouse Wheel Scroll Behavior
Express yourself! Share your work with other members of the Expression Community.

Each contribution is licensed to you under a License Agreement by its owner, not Microsoft. Microsoft does not guarantee the contribution or purport to grant rights to it.

Mouse Wheel Scroll Behavior

Average Rating:  (11)
Description
Discussions (4)

  • WPF?
    3 Posts | Last Post November 13, 2011
    • Will this work in a WPF client side application?
    • It is a Silverlight project but you should be able to compile this source code in a WPF project. I never tested it myself though.
    • It seems that this behavior is obsolete in WPF 4.0. Without adding it to the project, the scrollviewer control (and all controls that contain one) already react on the mouse wheel as expected.
  • error message?
    2 Posts | Last Post June 02, 2010
    • i am  getting an  error message when i try to dpwnload this, and it says something about zip files
      and then file not found.
      pleaseee help!
    • Sorry for the late response. I just tested in 3 different machines and the download worked just fine. Maybe it was some problem with the Expression Gallery site. 
      Could you try again and see if you can download now? If you still can't, ping me on Twitter (@kelps) and I'll send you the download by email.
  • Thanks!
    1 Posts | Last Post November 09, 2009
    • Thanks! It works perfect for me!
  • Don't works in Mac OSX
    5 Posts | Last Post October 28, 2009
    • Hello man.
      
      The Silverlight mouse scroll behavior don't works in Mac OSX?
      Flex Applications has this issue too, but already has a "workaround"(gambiarra :) ) for it: http://blog.pixelbreaker.com/flash/as30-mousewheel-on-mac-os-x/
      
      Best regards.
      
      
    • Hi,
      
      Thanks for pointing out. I already knew that but I forgot to put on the description. The description is updated now. This is a limitation of the native MouseWheel event in Silverlight 3. The only way to use the mouse wheel in Silverlight on Mac right now is by handling javascript events, and If I use javascript it won't work out of browser. 
      
      I could make a mixed implementation that uses javascript if running on Mac and inside the browser but I would need someone to test it for me.
    • I was using an Attached Behaviour (before Silverlight 3). The Silvelright Toolkit already includes something similar (I'm not sure about Mac Support). 
      
      I find it really nice that I can set the attached property in the Style and that way I avoid to set it again and again. I'm noot sure if that can be done with Behaviours, but it's something definately useful. 
    • Hey really nice work on this.
    • Hello!
      
      This behavior works fine with my page scrollviewer. But I have a datagrid in my page and I can' use with this datagrid's scrollviewer. How can I attach this behavior to a datagrid's scrollviewer? I attached to the datagrid, but nothing happens.

Details

Rate it: