TickmarkOptions.Offset Property
Gets or sets the offset of tickmarks shown on a scale.
Namespace: DevExpress.Xpf.Gauges
Assembly: DevExpress.Xpf.Gauges.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
Double | A Double value that specifies the tickmark position on a scale. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to Offset |
---|---|
ArcScale |
|
LinearScale |
|
Scale |
|
Example
This example demonstrates how to customize the tickmarks on a Circular scale.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-a-knob-like-gauge-e3335.
<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>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Offset property.
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.