Back to Devexpress

SankeyNodeLabel.ContentTemplate Property

wpf-devexpress-dot-xpf-dot-charts-dot-sankey-dot-sankeynodelabel-e9858ab8.md

latest2.1 KB
Original Source

SankeyNodeLabel.ContentTemplate Property

Specifies the data template to display the Sankey node label content.

Namespace : DevExpress.Xpf.Charts.Sankey

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

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

Property Value

TypeDescription
DataTemplate

The data template used to display the Sankey node label content.

|

Remarks

A SankeyNodeItem object is the DataContext for the ContentTemplate.

The following example creates a template that specifies the Sankey node label appearance:

xaml
<dxsa:SankeyDiagramControl.NodeLabel>
    <dxsa:SankeyNodeLabel>
        <dxsa:SankeyNodeLabel.ContentTemplate>
            <DataTemplate>
                <Border BorderThickness="1" CornerRadius="4" Opacity="1.0" Background="{Binding Brush}">
                    <Label Content="{Binding Path=Node.Tag}" 
                            Padding="2,2,2,1.5"   
                            Foreground="White" 
                            FontSize="13" />
                </Border>
            </DataTemplate>
        </dxsa:SankeyNodeLabel.ContentTemplate>
    </dxsa:SankeyNodeLabel>
</dxsa:SankeyDiagramControl.NodeLabel>

See Also

SankeyNodeLabel Class

SankeyNodeLabel Members

DevExpress.Xpf.Charts.Sankey Namespace