Back to Devexpress

SankeyDiagramControl.LinkToolTipContentTemplate Property

wpf-devexpress-dot-xpf-dot-charts-dot-sankey-dot-sankeydiagramcontrol-f7c79598.md

latest2.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public DataTemplate LinkToolTipContentTemplate { get; set; }
vb
Public Property LinkToolTipContentTemplate As DataTemplate

Property Value

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

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

NodeToolTipContentTemplate

SankeyDiagramControl Class

SankeyDiagramControl Members

DevExpress.Xpf.Charts.Sankey Namespace