Skip to main content

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.v23.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