Mouse up/down events
-
Hello, I have something strange, i have defined two Event Triggers with atched commands in my button:
LEFT MOUSE BUTTON SCENARIO: When i use those Events:MouseLeftButtonDown ,MouseLeftButtonUp the StartCommand invoked when i press(with left mouse button) down the button but when i relese the mouse the stop command is not invoked. RIGHT MOUSE BUTTON SCENARIO: When i use those Events:MouseRightButtonDown ,MouseRightButtonUp the StartCommand invoked when i press(with right mouse button) down the button and the StopCommand invoked when i release the button as expected. What is the problem why the StopCommand is not invoked? How can i fire off a command when a button is pressed(with left mouse button) and fire off another command when the button released? Thanks
-
Hello, I have something strange, i have defined two Event Triggers with atched commands in my button:
LEFT MOUSE BUTTON SCENARIO: When i use those Events:MouseLeftButtonDown ,MouseLeftButtonUp the StartCommand invoked when i press(with left mouse button) down the button but when i relese the mouse the stop command is not invoked. RIGHT MOUSE BUTTON SCENARIO: When i use those Events:MouseRightButtonDown ,MouseRightButtonUp the StartCommand invoked when i press(with right mouse button) down the button and the StopCommand invoked when i release the button as expected. What is the problem why the StopCommand is not invoked? How can i fire off a command when a button is pressed(with left mouse button) and fire off another command when the button released? Thanks
Have you tried using
PreviewMouseLeftButtonUp
?
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Hello, I have something strange, i have defined two Event Triggers with atched commands in my button:
LEFT MOUSE BUTTON SCENARIO: When i use those Events:MouseLeftButtonDown ,MouseLeftButtonUp the StartCommand invoked when i press(with left mouse button) down the button but when i relese the mouse the stop command is not invoked. RIGHT MOUSE BUTTON SCENARIO: When i use those Events:MouseRightButtonDown ,MouseRightButtonUp the StartCommand invoked when i press(with right mouse button) down the button and the StopCommand invoked when i release the button as expected. What is the problem why the StopCommand is not invoked? How can i fire off a command when a button is pressed(with left mouse button) and fire off another command when the button released? Thanks
can you post the code for Mouse down