Back to Devexpress

StripLineBase.ToolTipTemplate Property

wpf-devexpress-dot-xpf-dot-gantt-dot-striplinebase-42678275.md

latest2.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public DataTemplate ToolTipTemplate { get; set; }
vb
Public Property ToolTipTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A DataTemplate object that is the corresponding template.

|

Remarks

TargetType : ToolTip

Tooltip’s DataContext: StripLineToolTipData

Example

xaml
<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>

See Also

StripLineBase Class

StripLineBase Members

DevExpress.Xpf.Gantt Namespace