the way we calculate the distance (in pixels) between the ticks is by using the ratio between the range (maximum - minumum) and the size of the slider.
Therefore, to calculate the position of each tick, we can use a loop where the position of each tick is set in the following manner:
for (double tickValue = this.TickFrequency; tickValue < (this.Maximum - this.Minimum); tickValue += this.TickFrequency)
double tickPosition = (tickValue * this.ActualWidth) / (this.Maximum - this.Minimum);
For example, assume you have a slider with the following properties:
Width/ActualWidth = 300px,
Minimum = 10,
Maximum = 50,
TickFrequency = 1.
This means that the tick immediately after the minimum will be positioned at (1 * 300) / (50 - 10) == 7.5px, the second at (2 * 300) / (50 - 10) == 15px and so on.
Basically this is it. If something is not clear or you have additional questions, do not hesitate to contact us.
the Telerik team