All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

CustomTickmarksPresentation Class

Contains presentation settings that specify the tickmark appearance.

Namespace: DevExpress.Xpf.Gauges

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

Declaration

public class CustomTickmarksPresentation :
    TickmarksPresentation

Example

This example demonstrates how to define a custom tickmarks presentation.

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:GaugesDemoApp"
        xmlns:dxga="http://schemas.devexpress.com/winfx/2008/xaml/gauges" 
        x:Class="GaugesDemoApp.MainWindow"
        Title="MainWindow" Height="300" Width="300">
    <Grid>
        <dxga:CircularGaugeControl>
            <dxga:CircularGaugeControl.Scales>
                <dxga:ArcScale>
                    <dxga:ArcScale.Needles>
                        <dxga:ArcScaleNeedle/>
                    </dxga:ArcScale.Needles>
                    <dxga:ArcScale.TickmarksPresentation>
                        <dxga:CustomTickmarksPresentation>
                            <dxga:CustomTickmarksPresentation.MajorTickmarkTemplate>
                                <ControlTemplate>
                                    <Ellipse Width="8" Height="8" RenderTransformOrigin="0.5,0.5" StrokeThickness="1" Stroke="Black" Fill="Red"/>
                                </ControlTemplate>
                            </dxga:CustomTickmarksPresentation.MajorTickmarkTemplate>
                            <dxga:CustomTickmarksPresentation.MinorTickmarkTemplate>
                                <ControlTemplate>
                                    <Rectangle Width="10" Height="4" RenderTransformOrigin="1,0.5" StrokeThickness="1" Stroke="Red" Fill="Lime"/>
                                </ControlTemplate>
                            </dxga:CustomTickmarksPresentation.MinorTickmarkTemplate>
                        </dxga:CustomTickmarksPresentation>
                    </dxga:ArcScale.TickmarksPresentation>
                </dxga:ArcScale>
            </dxga:CircularGaugeControl.Scales>
        </dxga:CircularGaugeControl>
    </Grid>
</Window>

The image below illustrates the result.

See Also