Skip to main content
A newer version of this page is available. .

TrackBarEdit

  • 2 minutes to read

Overview

The TrackBarEdit control is an editor that allows end-users to select a numeric value by moving a thumb along the scale.

TrackBarEdit_NativeStyle

The TrackBarEdit control offers the following features.

Standalone TrackBarEdit

To add a standalone TrackBarEdit to a Window, drag it from the Toolbox.

The following sample demonstrates how to create a TrackBarEdit using XAML markup.

<dxe:TrackBarEdit  TickPlacement="Both" TickFrequency="10" Orientation="Vertical">
    <dxe:TrackBarEdit.StyleSettings>
        <dxe:TrackBarZoomStyleSettings/>
    </dxe:TrackBarEdit.StyleSettings>
</dxe:TrackBarEdit>

In-place TrackBarEdit

To embed a TrackBarEdit into a container control, use the TrackBarEditSettings class.

The following sample demonstrates how to embed a TrackBarEdit into a GridControl column.

<dxg:GridControl>
    <dxg:GridColumn FieldName="Brightness">
        <dxg:GridColumn.EditSettings>
            <dxe:TrackBarEdit/>
        </dxg:GridColumn.EditSettings>
    </dxg:GridColumn>
    <dxg:GridControl.View>
        <dxg:TableView/>
    </dxg:GridControl.View>
</dxg:GridControl>
See Also