wpf-devexpress-dot-xpf-dot-charts-dot-heatmap-dot-heatmaptooltipoptions-9729026a.md
Specifies when heatmap tooltips are displayed.
Namespace : DevExpress.Xpf.Charts.Heatmap
Assembly : DevExpress.Xpf.Charts.v25.2.dll
NuGet Package : DevExpress.Wpf.Charts
public ToolTipOpenMode OpenMode { get; set; }
Public Property OpenMode As ToolTipOpenMode
| Type | Description |
|---|---|
| ToolTipOpenMode |
Specifies an action that a user performs to invoke a cell tooltip.
|
Available values:
| Name | Description |
|---|---|
| OnHover |
A tooltip appears when hovering over a particular chart element.
| | OnClick |
A tooltip appears when clicking on a particular chart element.
|
You can access this nested property as listed below:
| Object Type | Path to OpenMode |
|---|---|
| HeatmapControl |
.ToolTipOptions .OpenMode
|
The following example shows how to enable tooltips for heatmap cells and configure tooltip options:
<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}
Y: {Y}
Value: {V}"
OpenMode="OnHover"
AutoPopDelay="00:00:03"
InitialDelay="00:00:00.1"
CloseOnClick="False"/>
</dxh:HeatmapControl.ToolTipOptions>
<!--...-->
</dxh:HeatmapControl>
</Grid>
See Also