Back to Devexpress

HeatmapToolTipOptions.InitialDelay Property

wpf-devexpress-dot-xpf-dot-charts-dot-heatmap-dot-heatmaptooltipoptions-c026e2a1.md

latest3.0 KB
Original Source

HeatmapToolTipOptions.InitialDelay Property

Gets or sets the delay before the tooltip is displayed.

Namespace : DevExpress.Xpf.Charts.Heatmap

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public TimeSpan InitialDelay { get; set; }
vb
Public Property InitialDelay As TimeSpan

Property Value

TypeDescription
TimeSpan

The delay before the tooltip is displayed.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to InitialDelay
HeatmapControl

.ToolTipOptions .InitialDelay

|

Remarks

This property specifies the time interval between when a user moves the mouse pointer over a visual element, and when the tooltip is displayed. The tooltip is visible during the time period specified in the HeatmapToolTipOptions.AutoPopDelay property.

Example

The following example shows how to enable tooltips for heatmap cells and configure tooltip options:

xaml
<Window.Resources>
    <DataTemplate x:Key="tooltipTemplate">
        <StackPanel Orientation="Vertical" Margin="8">
            <Label Foreground="Black" 
                   FontStyle="Italic" 
                   FontSize="14" 
                   Content="{Binding Path=ToolTipText}" />
        </StackPanel>
    </DataTemplate>
</Window.Resources>
<Grid>
    <dxh:HeatmapControl ToolTipEnabled="True" 
                        ToolTipTemplate="{StaticResource ResourceKey=tooltipTemplate}">
        <dxh:HeatmapControl.ToolTipOptions>
            <dxh:HeatmapToolTipOptions ContentMargin="0" 
                                       Pattern="X: {X}&#x0a;Y: {Y}&#x0a;Value: {V}" 
                                       OpenMode="OnHover" 
                                       AutoPopDelay="00:00:03" 
                                       InitialDelay="00:00:00.1" 
                                       CloseOnClick="False"/>
        </dxh:HeatmapControl.ToolTipOptions>
        <!--...-->
    </dxh:HeatmapControl>
</Grid>

See Also

HeatmapToolTipOptions Class

HeatmapToolTipOptions Members

DevExpress.Xpf.Charts.Heatmap Namespace