locked
MouseGesture, mouse movement RRS feed

  • Question

  • Is it possible to bind mouse movement to an ICommand, shouldn't there be a MouseMove in the MouseAction enum?

     

    Thanks

    Wednesday, April 25, 2007 10:45 AM

Answers

  • Unfortunately, it seems to be impossible. But why do you need to bind mouse movement to an ICommand? A Command is used to do a specific task, such as copy, open a file, etc. You don’t want to, say, open a file every time the user moves the mouse a little, right? MouseMove is usually used to display something on the UI dynamically, such as the current mouse point, draw a stroke, etc. If this is what you want to do, you can use the MouseMove event.

    Friday, April 27, 2007 6:46 AM

All replies

  • Unfortunately, it seems to be impossible. But why do you need to bind mouse movement to an ICommand? A Command is used to do a specific task, such as copy, open a file, etc. You don’t want to, say, open a file every time the user moves the mouse a little, right? MouseMove is usually used to display something on the UI dynamically, such as the current mouse point, draw a stroke, etc. If this is what you want to do, you can use the MouseMove event.

    Friday, April 27, 2007 6:46 AM
  • What if i wanted to make an application that zoomed on where the current mouse position is, but only wanted to use XAML and not code behind. Is that possible?
    Friday, September 19, 2008 9:14 PM