c# - In WPF, how do you tell if the left mouse button is currently down without using any events? -


i have app want able move slider. however, slider automatically updated program every 30 seconds. when try change slider position mouse, program still updating slider position, cannot move manually mouse.

somehow, want app not update slider if user in process of changing position. how can tell if left mouse button down without using left button down event? want able access mouse, , check button state of left mouse button. how access without being inside of mouse event?

bool mouseisdown = system.windows.input.mouse.leftbutton == mousebuttonstate.pressed;


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -