Mouse Wheel Input BindingHello,<br><br>Is there an InputGesture for binding a command to the mouse wheel scrolling action? In MouseGesture I can only find a MouseAction for clicking the wheel, not for scrolling it.<br><br>I wanted to bind the Ctrl + Scroll behaviour to the Navigation.IncreaseZoom and Navigation.DecreaseZoom commands, which is pretty standard, I believe?© 2009 Microsoft Corporation. Tous droits réservés.Thu, 19 Jun 2008 00:15:52 Zb39b5d98-d039-4e83-8c65-ca434786d6afhttp://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#b39b5d98-d039-4e83-8c65-ca434786d6afhttp://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#b39b5d98-d039-4e83-8c65-ca434786d6afAlexVallathttp://social.msdn.microsoft.com/Profile/fr-FR/?user=AlexVallatMouse Wheel Input BindingHello,<br><br>Is there an InputGesture for binding a command to the mouse wheel scrolling action? In MouseGesture I can only find a MouseAction for clicking the wheel, not for scrolling it.<br><br>I wanted to bind the Ctrl + Scroll behaviour to the Navigation.IncreaseZoom and Navigation.DecreaseZoom commands, which is pretty standard, I believe?Fri, 20 Oct 2006 14:52:24 Z2006-10-20T14:52:24Zhttp://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#b3a722e3-3a03-4e11-8845-68b8c68f38a3http://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#b3a722e3-3a03-4e11-8845-68b8c68f38a3Zhou Yonghttp://social.msdn.microsoft.com/Profile/fr-FR/?user=Zhou%20YongMouse Wheel Input BindingActually, MouseAction.WheelClick represents the rotation of mouse wheel.<br><br>Sheva<br>Fri, 20 Oct 2006 15:15:14 Z2006-10-20T15:15:14Zhttp://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#0767bfb2-4ba4-4000-b300-644240f8d9f1http://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#0767bfb2-4ba4-4000-b300-644240f8d9f1AlexVallathttp://social.msdn.microsoft.com/Profile/fr-FR/?user=AlexVallatMouse Wheel Input BindingHuh, so it does, thanks! But I can only see one of them, does this mean it is not possible to assign a different command to scrolling up than to scrolling down? Without this I still can't bind to the zoom in and out commands for ctrl+scroll.<br>Fri, 20 Oct 2006 16:05:32 Z2006-10-20T16:05:32Zhttp://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#cbc8d310-be95-4ee3-aae2-730cd101d8abhttp://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#cbc8d310-be95-4ee3-aae2-730cd101d8abThomas S. Andersenhttp://social.msdn.microsoft.com/Profile/fr-FR/?user=Thomas%20S.%20AndersenMouse Wheel Input Binding<p>Did someone solve this?</p> <p> </p>Wed, 23 May 2007 07:41:59 Z2007-05-23T07:41:59Zhttp://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#678cc439-88d5-44c3-a9f3-3753e82ddbe8http://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#678cc439-88d5-44c3-a9f3-3753e82ddbe8Thomas S. Andersenhttp://social.msdn.microsoft.com/Profile/fr-FR/?user=Thomas%20S.%20AndersenMouse Wheel Input Binding<p>Ohh, seems I have to use MouseWheelEvent instead: <a title="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1195845&amp;SiteID=1" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1195845&amp;SiteID=1">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1195845&amp;SiteID=1</a></p> <p> </p>Wed, 23 May 2007 07:48:56 Z2007-05-23T07:48:56Zhttp://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#ed29cfe4-bb1f-44c6-89b1-48db330b2ec8http://social.msdn.microsoft.com/Forums/fr-FR/wpf/thread/b39b5d98-d039-4e83-8c65-ca434786d6af#ed29cfe4-bb1f-44c6-89b1-48db330b2ec8Caleb Vearhttp://social.msdn.microsoft.com/Profile/fr-FR/?user=Caleb%20VearMouse Wheel Input Binding<p align=left>Actually you don't have to use the MouseWheelEvent.  It is quite easy to create a new type of MouseGesture that allows you to set a gesture for moving the mouse wheel up or down.  I have detailed how I did this on my blog.  You can find my <span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'">article </span>called <a title="http://cebla5.spaces.live.com/blog/cns!1B8262ED00250003!133.entry" href="http://cebla5.spaces.live.com/blog/cns!1B8262ED00250003!133.entry">Creating a Customer InputGesture for Mouse Wheel Movements</a>.</p> <p> </p> <p align=left>Cheers,</p> <p align=left> </p> <p align=left>Caleb</p>Wed, 19 Sep 2007 14:34:48 Z2007-09-19T14:34:48Z