All docs
V20.2
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.

CustomArcScaleMarkerPresentation Class

Contains presentation settings that specify the marker appearance.

Namespace: DevExpress.Xpf.Gauges

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

Declaration

public class CustomArcScaleMarkerPresentation :
    ArcScaleMarkerPresentation
Public Class CustomArcScaleMarkerPresentation
    Inherits ArcScaleMarkerPresentation

Examples

This example demonstrates how to define a custom marker 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 ShowMinorTickmarks="False" ShowLine="False">
                    <dxga:ArcScale.Ranges>
                        <dxga:ArcScaleRange StartValue="0" EndValue="100">
                            <dxga:ArcScaleRange.Presentation>
                                <dxga:DefaultArcScaleRangePresentation Fill="Gray"/>
                            </dxga:ArcScaleRange.Presentation>
                            <dxga:ArcScaleRange.Options>
                                <dxga:RangeOptions Thickness="40"/>
                            </dxga:ArcScaleRange.Options>
                        </dxga:ArcScaleRange>
                    </dxga:ArcScale.Ranges>
                    <dxga:ArcScale.Markers>
                        <dxga:ArcScaleMarker Value="25" IsInteractive="True">
                            <dxga:ArcScaleMarker.Presentation>
                                <dxga:CustomArcScaleMarkerPresentation>
                                    <dxga:CustomArcScaleMarkerPresentation.MarkerTemplate>
                                        <ControlTemplate>
                                            <Border Background="White" BorderThickness="0" Width="38" Height="10" CornerRadius="5" />
                                        </ControlTemplate>
                                    </dxga:CustomArcScaleMarkerPresentation.MarkerTemplate>
                                </dxga:CustomArcScaleMarkerPresentation>
                            </dxga:ArcScaleMarker.Presentation>
                            <dxga:ArcScaleMarker.Options>
                                <dxga:ArcScaleMarkerOptions Offset="-39"/>
                            </dxga:ArcScaleMarker.Options>
                        </dxga:ArcScaleMarker>
                    </dxga:ArcScale.Markers>
                    <dxga:ArcScale.Needles>
                        <dxga:ArcScaleNeedle Value="85" IsInteractive="True"/>
                    </dxga:ArcScale.Needles>
                </dxga:ArcScale>
            </dxga:CircularGaugeControl.Scales>
        </dxga:CircularGaugeControl>
    </Grid>
</Window>

The image below illustrates the result.

See Also