Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TrackBarEdit.ValueToolTipContentTemplate Property

Gets or sets a template that presents the content of a track bar value tooltip. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public DataTemplate ValueToolTipContentTemplate { get; set; }

#Property Value

Type Description
DataTemplate

A DataTemplate object that represents the data template.

#Remarks

To format the range tooltip, you can use the ValueToolTipContentTemplate property. When the track bar is in the Range edit mode, the ValueToolTipContentTemplate‘s data context is an object of the TrackBarEditRange type.

The code sample below demonstrates how to format the tooltip that displays the selected range:

<dxe:TrackBarEdit
    TickFrequency="10"
    TickItemDisplayMode="TickAndText"
    ValueToolTipPlacement="TopLeft">
    <dxe:TrackBarEdit.ValueToolTipContentTemplate>
        <!-- The data context is an object of DevExpress.Xpf.Editors.TrackBarEditRange type. -->
        <DataTemplate>
            <TextBlock Text="{DXBinding '`From ` + SelectionStart + ` to ` + SelectionEnd'}" />
        </DataTemplate>
    </dxe:TrackBarEdit.ValueToolTipContentTemplate>
    <dxe:TrackBarEdit.StyleSettings>
        <dxe:TrackBarRangeStyleSettings />
    </dxe:TrackBarEdit.StyleSettings>
</dxe:TrackBarEdit>

Tip

The code sample above uses DXBinding.

See Also