Back to Devexpress

ToolTipOptions Class

wpf-devexpress-dot-xpf-dot-charts-73d1cd92.md

latest2.6 KB
Original Source

ToolTipOptions Class

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

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public class ToolTipOptions :
    ChartDependencyObject
vb
Public Class ToolTipOptions
    Inherits ChartDependencyObject

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:

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

Inheritance

Object DispatcherObject DependencyObject Freezable ChartDependencyObject ToolTipOptions

See Also

ToolTipOptions Members

DevExpress.Xpf.Charts Namespace