ToolTipOptions Class
Contains settings that define how to display tooltips within a chart.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.1.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
Related API Members
The following members return ToolTipOptions objects:
Remarks
Use the ChartControl.ToolTipOptions property to get access to the ToolTipOptions object.
The following XAML demonstrates how this can be done:
<Window x:Class="Tooltip.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts"
Title="MainWindow" Height="350" Width="525" >
<Grid>
<dxc:ChartControl ToolTipEnabled="True" >
<dxc:ChartControl.ToolTipOptions>
<dxc:ToolTipOptions ShowForSeries="True" ShowForPoints="False">
<dxc:ToolTipOptions.ToolTipPosition>
<dxc:ToolTipMousePosition Location="TopLeft" />
</dxc:ToolTipOptions.ToolTipPosition>
</dxc:ToolTipOptions>
</dxc:ChartControl.ToolTipOptions>
</dxc:ChartControl>
</Grid>
</Window>
For more information on tooltips, see the Tooltips topic.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ToolTipOptions class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.