Expression > Gallery > Behaviors > 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:  (8)
Description
Discussions (2)
  • 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.