Back to Devexpress

Scale.MajorTickmarkOptions Property

wpf-devexpress-dot-xpf-dot-gauges-dot-scale-5becccde.md

latest2.8 KB
Original Source

Scale.MajorTickmarkOptions Property

Provides access to the options that define the appearance, behavior and location of major tickmarks within the current scale.

Namespace : DevExpress.Xpf.Gauges

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

NuGet Package : DevExpress.Wpf.Gauges

Declaration

csharp
public MajorTickmarkOptions MajorTickmarkOptions { get; set; }
vb
Public Property MajorTickmarkOptions As MajorTickmarkOptions

Property Value

TypeDescription
MajorTickmarkOptions

A MajorTickmarkOptions object that contains settings for major tickmarks.

|

Remarks

Use the MajorTickmarkOptions property to customize different major tickmark’s settings (e.g. the MajorTickmarkOptions.ShowFirst and MajorTickmarkOptions.ShowLast properties define whether boundary tickmarks should be visible).

To change settings of the minor tickmarks, use the Scale.MinorTickmarkOptions property.

Example

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

View Example

xaml
<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>

See Also

MinorTickmarkOptions

Scale Class

Scale Members

DevExpress.Xpf.Gauges Namespace