Skip to main content
All docs
V24.1

SankeyDiagramControl.NodeTemplate Property

Defines the data template that customizes the node appearance.

Namespace: DevExpress.Xpf.Charts.Sankey

Assembly: DevExpress.Xpf.Charts.v24.1.dll

NuGet Package: DevExpress.Wpf.Charts

Declaration

public DataTemplate NodeTemplate { get; set; }

Property Value

Type Description
DataTemplate

The data template used to customize the node appearance.

Remarks

A SankeyNodeItem object is the DataContext for the NodeTemplate. Use the SankeyNodeItem.OpacityMask property to allow users to highlight nodes when the SankeyDiagramControl.NodeTemplate is defined.

The following example defines a node template:

<dxsa:SankeyDiagramControl.NodeTemplate>
    <DataTemplate>
        <Rectangle Fill="Transparent"
                   OpacityMask="{Binding OpacityMask}"
                   Stroke="{Binding Brush}"
                   StrokeThickness="2" />
    </DataTemplate>
</dxsa:SankeyDiagramControl.NodeTemplate>

Result:

Sankey Node Template

See Also