I have set the TickFrequence on my TrackBar to 1 and when I use the arrow keys it only increases or decreases one, as it should, but when I use the mouse it show decimal values.
I googled it but couldn't find any help. Can someone help me with this?
Note: I'm using WPF
Thanks in advance,
Tomas


VulpesRank #55 · 29.2K reputationPosted Jun 23, 2013, 11:42 AM EDT
If that's the case, then you should be able to restrict it to integer values when using the mouse by:
1. Setting the TickFrequency property to an integral value (it actually returns a double); and
2 . Setting the IsSnapToTickEnabled property to 'true'.
Tomas Westerlund38 reputationPosted Jun 23, 2013, 10:15 PM EDT
I set the IsSnapToTickEnabled to true and now it works!
Best regards,
Tomas