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.

TrackBarEditTickItem.DisplayMode Property

Gets or sets a value that specifies how the current item is displayed. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

Declaration

public TrackBarEditTickItemDisplayMode DisplayMode { get; set; }
Public Property DisplayMode As TrackBarEditTickItemDisplayMode

Property Value

Type Description
TrackBarEditTickItemDisplayMode

One of the TrackBarEditTickItemDisplayMode enumeration values.

Remarks

TrackBarEdit TickItemDisplayMode

Use the DisplayMode property to customize the display mode for particular track-bar items.

Examples

The code sample below demonstrates how to display large ticks with labels each 10 steps and display medium-sized ticks for steps like 5, 15, 25, 35, etc.

xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"

<dxe:TrackBarEdit 
                 Margin="20" 
                 TickAlternationCount="10" 
                 TickFrequency="1" 
                 TickPlacement="BottomRight">
    <dxe:TrackBarEdit.TickItemContainerStyle>
        <Style TargetType="dxe:TrackBarEditTickItem">
            <Style.Triggers>
                <Trigger Property="AlternationIndex" Value="0">
                    <Setter Property="TickLength" Value="10" />
                    <Setter Property="DisplayMode" Value="TickAndText" />
                </Trigger>
                <Trigger Property="AlternationIndex" Value="5">
                    <Setter Property="TickLength" Value="6" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </dxe:TrackBarEdit.TickItemContainerStyle>
</dxe:TrackBarEdit>

The image below illustrates the result.

trackbar decimal ruler

See Also