Skip to main content

AxisStyle.MajorTickmarksVisible Property

Gets or sets whether major tickmarks are displayed on an axis. This is a bindable property.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts


public DefaultBoolean MajorTickmarksVisible { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean value that specifies whether tickmarks are visible.

Available values:

Name Description

The value is determined by the current object’s parent object setting (e.g., a control setting).


Corresponds to a Boolean value of true.


Corresponds to a Boolean value of false.


Tickmarks (major and minor) divide an axis into equal sections by a step whose value is determined by the special options of an axis. Tickmarks are hidden by default. Set the MajorTickmarksVisible property to DevExpress.Maui.Charts.DefaultBoolean.True to show major tickmarks on an axis. To change tickmark thickness and length, use the MajorTickmarksThickness and MajorTickmarksLength properties, respectively.

To show and customize minor tickmarks, use the MinorTickmarksVisible, MinorTickmarksThickness and MinorTickmarksLength properties.


This example demonstrates how to use the AxisStyle class properties to customize axis lines, display grid lines and tickmarks with the specified appearance, and enable interlaced color intervals on the chart diagram.

Axis Style

<ContentPage xmlns=""
    <dxc:AxisStyle x:Key="axisStyle" 
                   LineThickness="1" LineColor="Black"
                   MajorGridlinesVisible="True" MajorGridlinesThickness="1" MajorGridlinesColor="Black"
                   MinorGridLinesVisible="True" MinorGridlinesThickness="1" MinorGridlinesColor="LightGray"
                   MajorTickmarksVisible="True" MajorTickmarksThickness="1" MajorTickmarksLength="15"
                   MinorTickmarksVisible="True" MinorTickmarksThickness="1" MinorTickmarksLength="10"
                   InterlacedVisible="True" />
        <dxc:DateTimeAxisX Style="{StaticResource axisStyle}" />
        <dxc:NumericAxisY Style="{StaticResource axisStyle}"/>
See Also