Why Is TickFrequency Called TickFrequency?

I'm a bit confused by the nomenclature for this control.

When I read the documentation (and use the control, for that matter), the property TickFrequency isn't the number of major ticks on the slider. It's the width/size of each major tick. The frequency would be (Maximum - Minimum) / TickFrequency (in physics terms I think what's being referred to as TickFrequency is really TickWavelength).

So why is TickFrequency not called something like MajorTickSize? I think it'd be more descriptive, and less confusing.

BTW, MinorTickFrequency really is the frequency of minor ticks (i.e., it's the number of minor ticks that display between each major tick).

Just curious.

- Mark


1 Reply

SS Suganya Sethuraman Syncfusion Team October 11, 2021 09:07 AM UTC

Hi Mark,

Greetings from Syncfusion.

We have analyzed your query.

Query 1: TickFrequency

TickFrequency is used to define the number of ticks along the track, based on Minimum and Maximum values.

For example, suppose the minimum value is 0, the maximum value is 100, and the TickFrequency is 10. Ticks are visible based on the TickFrequency, which can range from 0 to 100.

Xaml
 
        <editors:SfRangeSlider 
                    Width="300" 
                    Maximum="100" 
                    Minimum="0" 
                    TickFrequency="10" 
                    TickPlacement="BottomRight" 
                    Value="40"  
                    ShowValueLabels="True"/> 

Screenshot
 
 
Query 2: MinorTickFrequency

MinorTickFrequency determines the number of minor ticks on the track between the major ticks.

For example, suppose the minimum value is 0, the maximum value is 100, the TickFrequency is 10 and the MinorTickFrequency is 3.  Between Major ticks, 3 ticks are available.

Xaml

 
        <editors:SfRangeSlider 
                    Width="300" 
                    Maximum="100" 
                    Minimum="0" 
                    MinorTickFrequency="3" 
                    TickFrequency="10" 
                    TickPlacement="BottomRight" 
                    Value="40"  
                    ShowValueLabels="True"/> 


Screenshot


Please have a sample for your reference,

Sample:  https://www.syncfusion.com/downloads/support/directtrac/general/ze/RangeSliderTickFrequency-444961890

UG Link:
Ticks in WPF Range Slider control | Syncfusion

Please check and let us know if you have any concerns.

Regards,
Suganya Sethuraman.
 
 


Loader.
Up arrow icon