Back to Devexpress

SankeyDiagramControl.NodeToolTipContentTemplate Property

wpf-devexpress-dot-xpf-dot-charts-dot-sankey-dot-sankeydiagramcontrol-38aa083d.md

latest2.2 KB
Original Source

SankeyDiagramControl.NodeToolTipContentTemplate Property

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

Namespace : DevExpress.Xpf.Charts.Sankey

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

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

Property Value

TypeDescription
DataTemplate

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

|

Remarks

A SankeyToolTipInfo object is the DataContext for the NodeToolTipContentTemplate.

The following example uses the NodeToolTipContentTemplate to customize the tooltip’s Sankey node text:

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

Result:

See Also

LinkToolTipContentTemplate

SankeyDiagramControl Class

SankeyDiagramControl Members

DevExpress.Xpf.Charts.Sankey Namespace