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.TickItemTemplate Property

Gets or sets a template that defines the presentation of track bar tick items. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public DataTemplate TickItemTemplate { get; set; }

#Property Value

Type Description
DataTemplate

A DataTemplate object that represents the template which defines the presentation of track bar tick items.

#Remarks

The TickItemTemplate template is in effect only when the TickItemDisplayMode is set to Text or TickAndText.

The code sample below demonstrates how to render track bar tick items using TextBlocks with custom foreground.

<dxe:TrackBarEdit
    TickFrequency="10"
    TickPlacement="BottomRight"
    TickItemDisplayMode="TickAndText">
    <dxe:TrackBarEdit.TickItemTemplate>
        <DataTemplate>
              <TextBlock Text="{Binding}" Foreground="SteelBlue"/>
        </DataTemplate>
    </dxe:TrackBarEdit.TickItemTemplate>
</dxe:TrackBarEdit>

See Also