Back to Devexpress

DxRangeSelectorScaleMinorTick Class

blazor-devexpress-dot-blazor-a64d93f4.md

latest4.1 KB
Original Source

DxRangeSelectorScaleMinorTick Class

Contains settings for minor scale ticks.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public class DxRangeSelectorScaleMinorTick :
    DxSettingsComponent<RangeSelectorScaleMinorTickModel>

Remarks

Add a DxRangeSelectorScaleMinorTick object to the DxRangeSelectorScale component markup to configure settings of minor scale ticks in DxRangeSelector.

Show Nested Component Structure

The Range Selector calculates minor tick intervals automatically based on data source values. You can use the DxRangeSelectorScale.MinorTickInterval property to set a custom interval for minor scale ticks. Alternatively, use the DxRangeSelectorScale.MinorTickCount property to specify the number of minor ticks between two neighboring major ticks.

Note

The DxRangeSelectorScale.MinorTickInterval property has priority over the DxRangeSelectorScale.MinorTickCount property.

The DxRangeSelectorScaleMinorTick component allows you to customize the color, opacity, and width of minor scale ticks. To hide minor ticks, set the Visible property to false.

Example

The following code snippet changes the appearance of minor scale ticks in the <DxRangeSelector> component:

razor
<DxRangeSelector Width="100%"
                 ValueChanged="@OnValueChanged"
                 ValueChangeMode="RangeSelectorValueChangeMode.OnHandleMove">
    <DxTitleSettings Text="Filter Order List by Total Cost" />
    <DxRangeSelectorScale StartValue="@minTotal"
                          EndValue="@maxTotal"
                          TickInterval="1000">
        <DxRangeSelectorScaleTick Opacity="0.9" />
        <DxRangeSelectorScaleMinorTick Color="#28a745" Opacity="0.7" />
    </DxRangeSelectorScale>
    <DxRangeSelectorSliderMarker>
        <DxTextFormatSettings LdmlString=",##0" />
    </DxRangeSelectorSliderMarker>
</DxRangeSelector>

Run Demo

Implements

IComponent

IHandleEvent

IHandleAfterRender

IDisposable

Inheritance

Object ComponentBase DxSettingsComponent<DevExpress.Blazor.Internal.RangeSelectorScaleMinorTickModel> DxRangeSelectorScaleMinorTick

See Also

DxRangeSelectorScaleMinorTick Members

DevExpress.Blazor Namespace