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

StripLineBase.ToolTipTemplate Property

Gets or sets the template used to represent a strip line’s tooltip on-screen. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

#Declaration

public DataTemplate ToolTipTemplate { get; set; }

#Property Value

Type Description
DataTemplate

A DataTemplate object that is the corresponding template.

#Remarks

TargetType: ToolTip

Tooltip’s DataContext: StripLineToolTipData

#Example

<dxgn:CurrentDateTimeStripLine ToolTip="Current time">
    <dxgn:CurrentDateTimeStripLine.ToolTipTemplate>
        <DataTemplate>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="70" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="Start:" />
                <TextBlock Grid.Row="1" Grid.Column="0" Text="End:" />
                <TextBlock Grid.Row="2" Grid.Column="0" Text="Duration:" />
                <TextBlock Grid.Row="3" Grid.Column="0" Text="ToolTip:" />
                <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Start}" />
                <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding End}" />
                <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding Duration}" />
                <TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding ToolTip}" />
            </Grid>
        </DataTemplate>
    </dxgn:CurrentDateTimeStripLine.ToolTipTemplate>
</dxgn:CurrentDateTimeStripLine>

Gantt Tooltip Template

See Also