Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

MinorTickmarkOptions Class

Contains settings that define the layout and behavior of the minor tickmarks along the scale.

Namespace: DevExpress.Xpf.Gauges

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

NuGet Package: DevExpress.Wpf.Gauges

#Declaration

public class MinorTickmarkOptions :
    TickmarkOptions

The following members return MinorTickmarkOptions objects:

#Remarks

The options provided by a MinorTickmarkOptions instance can be accessed via the Scale.MinorTickmarkOptions property of a Scale object.

To define the layout of the minor tickmarks, use the MinorTickmarkOptions.ZIndex, TickmarkOptions.Offset, TickmarkOptions.FactorThickness and TickmarkOptions.FactorLength properties.

The behavior of the minor tickmarks is set by the MinorTickmarkOptions.ShowTicksForMajor property.

For more information on minor tickmarks, refer to the Tickmarks (Circular Scale) and Tickmarks (Linear Scale) documents.

#Example

This example demonstrates how to customize the tickmarks on a Circular scale.

View Example

<dxga:ArcScale.TickmarksPresentation>
    <dxga:SmartTickmarksPresentation 
        MajorTickBrush="#FF7C8295" MinorTickBrush="#FF7C8295" />
</dxga:ArcScale.TickmarksPresentation>
<dxga:ArcScale.MajorTickmarkOptions>
    <dxga:MajorTickmarkOptions Offset="-2" />
</dxga:ArcScale.MajorTickmarkOptions>
<dxga:ArcScale.MinorTickmarkOptions>
    <dxga:MinorTickmarkOptions Offset="-2" />
</dxga:ArcScale.MinorTickmarkOptions>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MinorTickmarkOptions class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also