ToolTipOptions Class

Contains settings that define how to display tooltips within a chart.

Namespace: DevExpress.Xpf.Charts

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

Declaration

public class ToolTipOptions :
    ChartDependencyObject
Public Class ToolTipOptions
    Inherits ChartDependencyObject

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.

See Also