Back to Devexpress

SankeyToolTipInfo Class

wpf-devexpress-dot-xpf-dot-charts-dot-sankey-c786092e.md

latest2.3 KB
Original Source

SankeyToolTipInfo Class

Contains Sankey tooltip text options.

Namespace : DevExpress.Xpf.Charts.Sankey

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public class SankeyToolTipInfo :
    NotifyPropertyChangedObject
vb
Public Class SankeyToolTipInfo
    Inherits NotifyPropertyChangedObject

The following members return SankeyToolTipInfo objects:

Remarks

A SankeyToolTipInfo object is the DataContext for the SankeyDiagramControl.NodeToolTipContentTemplate and SankeyDiagramControl.LinkToolTipContentTemplate.

The following example uses the SankeyToolTipInfo.SourceObject and SankeyToolTipInfo.ToolTipText properties to define custom content for Sankey links:

xaml
<dxsa:SankeyDiagramControl.LinkToolTipContentTemplate>
    <DataTemplate>
        <StackPanel>
            <TextBlock Text="{Binding Path=ToolTipText}" />
            <TextBlock HorizontalAlignment="Center" Text="{Binding Path=SourceObject.TotalWeight}"/>
        </StackPanel>
    </DataTemplate>
</dxsa:SankeyDiagramControl.LinkToolTipContentTemplate>

Result:

Inheritance

Object DevExpress.Xpf.Charts.NotifyPropertyChangedObject SankeyToolTipInfo

See Also

SankeyToolTipInfo Members

DevExpress.Xpf.Charts.Sankey Namespace