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

Tomas WesterlundPosted Jun 24, 2013, 2:15 AM
I set the IsSnapToTickEnabled to true and now it works!
Best regards,
Tomas
VulpesPosted Jun 23, 2013, 3:42 PM
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'.