Skip to main content
A newer version of this page is available. .

Scale.ShowMajorTickmarks Property

Gets or sets whether the major tickmarks should be visible on a scale.

Namespace: DevExpress.Xpf.Gauges

Assembly: DevExpress.Xpf.Gauges.v21.2.dll

NuGet Package: DevExpress.Wpf.Gauges

Declaration

public DefaultBoolean ShowMajorTickmarks { get; set; }

Property Value

Type Description
DefaultBoolean

A DefaultBoolean enumeration value that specifies the visibility of major tickmarks on a scale.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

Set the ShowMajorTickmarks property value to either DefaultBoolean.True or DefaultBoolean.False to control the visibility of major tickmarks on a Circular or Linear scale.

Note that by default, the ShowMajorTickmarks property is set to DefaultBoolean.Default. This means that the visibility of major tickmarks is defined by the current model of a gauge control, set by the CircularGaugeControl.Model or LinearGaugeControl.Model properties.

The table below illustrates the property behavior.

ShowMajorTickmarks = True ShowMajorTickmarks = False
Scale_ShowMajor(Minor) tickmarks-true Scale_ShowMajorTickmarks-false

For more information on major tickmarks, refer to the tickmarks (Circular scale) and tickmarks (Linear scale) documents.

See Also