Back to Devexpress

SankeyToolTipInfo.SourceObject Property

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

latest2.3 KB
Original Source

SankeyToolTipInfo.SourceObject Property

Returns the object for which the tooltip is displayed.

Namespace : DevExpress.Xpf.Charts.Sankey

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public object SourceObject { get; }
vb
Public ReadOnly Property SourceObject As Object

Property Value

TypeDescription
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:

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:

See Also

SankeyToolTipInfo Class

SankeyToolTipInfo Members

DevExpress.Xpf.Charts.Sankey Namespace