Skip to main content
All docs
V25.1
  • 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.v25.1.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