Back to Devexpress

SankeyToolTipInfo.ToolTipText Property

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

latest1.8 KB
Original Source

SankeyToolTipInfo.ToolTipText Property

Returns the default tooltip’s text.

Namespace : DevExpress.Xpf.Charts.Sankey

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public string ToolTipText { get; }
vb
Public ReadOnly Property ToolTipText As String

Property Value

TypeDescription
String

The default tooltip’s text.

|

Remarks

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