Back to Devexpress

SankeyDiagramControl.ToolTipTemplate Property

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

latest2.1 KB
Original Source

SankeyDiagramControl.ToolTipTemplate Property

Defines the data template that customizes tooltip appearance of Sankey nodes and links.

Namespace : DevExpress.Xpf.Charts.Sankey

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

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

Property Value

TypeDescription
DataTemplate

The data template used to customize tooltip appearance.

|

Remarks

A SankeyToolTipItem object is the DataContext for the ToolTipTemplate.

The following example defines the template that customizes the appearance of node and link tooltips:

xaml
<dxsa:SankeyDiagramControl.ToolTipTemplate>
    <DataTemplate>
        <Border BorderThickness="1" 
                CornerRadius="10" 
                Opacity="1.0" 
                Background="#FF2C2B2B">
            <StackPanel Orientation="Vertical" Margin="8">
                <Label Foreground="White" 
                       FontStyle="Italic" 
                       FontSize="14" 
                       Content="{Binding Path=Info.ToolTipText}" />
            </StackPanel>
        </Border>
    </DataTemplate>
</dxsa:SankeyDiagramControl.ToolTipTemplate>

Result:

See Also

SankeyDiagramControl Class

SankeyDiagramControl Members

DevExpress.Xpf.Charts.Sankey Namespace