how can I find if an event is raised by UI or by code? I need to recognaize if Value of a slider is changed by the user from UI or has a new value from the executed code?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As Thumb’s DragCompleted event does not address the case that user clicks on slider, I used something similar to what Peter suggesetd in link, I used PreviewMouseLeftButtonUp event of the slider. This addresses all the cases.