This article is a mirror article of machine translation, please click here to jump to the original article.

View: 16545|Reply: 0

[WPF] WPF slider mouse click to move

[Copy link]
Posted on 3/15/2016 4:37:13 PM | | |

Usually when using the slider, I hope that clicking the scale slider on the slider can automatically move to the corresponding scale, but in the process of using it, I found that the default behavior of the slider is not like this, when we click the mouse, the slider only moves a step in the direction of our mouse, which brings trouble to the user in the operation (users can also use drag, but dragging is not as convenient as clicking to move), At this time, we just need to set the IsMoveToPointEnabled property to True.




Previous:WPF controls right-click the menu, as well as the checkmark and tick in front of the menu item
Next:WPF Slider Style Template for Progress Bar with Progress Color Display
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com