Skip to main content

ScaleLabelOptions.ShowLast Property

Gets or sets a value indicating whether the last label should be shown on a scale.

Namespace: DevExpress.Xpf.Gauges

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

NuGet Package: DevExpress.Wpf.Gauges


public bool ShowLast { get; set; }

Property Value

Type Description

true to display the last label on a scale; otherwise false.


Use the ScaleLabelOptions.ShowFirst and ShowLast properties to show or hide the first and last labels on a scale. This may be required, for example, when these labels are both displayed at the same position and the resulting gauge looks ugly. In this case, you can hide the last label by setting the ShowLast property to false.

The table bellow illustrates this behavior.

ShowFirst=True, ShowLast=True ShowFirst=False, ShowLast=True ShowFirst=True, ShowLast=False
Label_ShowFirst_ShowLast_True Label_ShowFirst_False_ShowLast-True Label_ShowFirst-True-ShowLast-False

For more information on labels, refer to labels (Circular scale) and labels (Linear scale) documents.


This example illustrates how to create a CircularGaugeControl instance with a single ArcScale object.

View Example

<Window x:Class="DXGauges_Circular.MainWindow"
        Title="MainWindow" Height="350" Width="525">
        <dxga:CircularGaugeControl Name="circularGaugeControl1" >
                <dxga:CircularRedClockModel />
                <dxga:ArcScale StartValue="0" EndValue="12" 
                               StartAngle="-90" EndAngle="270"
                               MajorIntervalCount="12" MinorIntervalCount="5">
                        <dxga:ArcScaleLabelOptions ShowFirst="False" Orientation="LeftToRight" />
                        <dxga:ArcScaleNeedle Value="3" />
                        <dxga:ArcScaleNeedle Value="12" />
                        <dxga:ArcScaleMarker Value="7" />
                        <dxga:ArcScaleRangeBar AnchorValue="7" Value="3" />
                        <dxga:ArcScaleLayer />
                        <dxga:ArcScaleRange StartValue="0" EndValue="4" />
                        <dxga:ArcScaleRange StartValue="4" EndValue="8" />
                        <dxga:ArcScaleRange StartValue="8" EndValue="12" />
See Also