Back to Devexpress

SankeyDiagramControl.NodeTemplate Property

wpf-devexpress-dot-xpf-dot-charts-dot-sankey-dot-sankeydiagramcontrol-790a2c4e.md

latest1.9 KB
Original Source

SankeyDiagramControl.NodeTemplate Property

Defines the data template that customizes the node appearance.

Namespace : DevExpress.Xpf.Charts.Sankey

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

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

Property Value

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

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

Result:

See Also

SankeyDiagramControl Class

SankeyDiagramControl Members

DevExpress.Xpf.Charts.Sankey Namespace