Skip to main content
A newer version of this page is available. .
All docs
V20.2

SankeyDiagramControl.LinkToolTipContentTemplate Property

Specifies the data template used to display the tooltip’s Sankey link content.

Namespace: DevExpress.Xpf.Charts.Sankey

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Charts, DevExpress.Wpf.Charts

Declaration

public DataTemplate LinkToolTipContentTemplate { get; set; }

Property Value

Type Description
DataTemplate

The data template used to display the tooltip’s Sankey link content.

Remarks

A SankeyToolTipInfo object is the DataContext for the LinkToolTipContentTemplate.

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