Skip to main content
All docs
V24.1

SankeyToolTipInfo.SourceObject Property

Returns the object for which the tooltip is displayed.

Namespace: DevExpress.Xpf.Charts.Sankey

Assembly: DevExpress.Xpf.Charts.v24.1.dll

NuGet Package: DevExpress.Wpf.Charts

Declaration

public object SourceObject { get; }

Property Value

Type Description
Object

The object for which the tooltip is displayed.

Remarks

The SourceObject property returns the SankeyLink object in the SankeyDiagramControl.LinkToolTipContentTemplate and the SankeyNode object in the SankeyDiagramControl.NodeToolTipContentTemplate.

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

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

Result:

Sankey Link Tooltip Content Template

See Also