Back to Devexpress

SankeyNodeItem.Brush Property

wpf-devexpress-dot-xpf-dot-charts-dot-sankey-dot-sankeynodeitem-4bc1fceb.md

latest2.1 KB
Original Source

SankeyNodeItem.Brush Property

Returns the Brush object used to paint the node.

Namespace : DevExpress.Xpf.Charts.Sankey

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public Brush Brush { get; }
vb
Public ReadOnly Property Brush As Brush

Property Value

TypeDescription
Brush

The Brush object used to paint the node.

|

Remarks

The following example uses the SankeyNodeItem.Node and SankeyNodeItem.Brush properties to define the SankeyNodeLabel.ContentTemplate:

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

SankeyNodeItem Class

SankeyNodeItem Members

DevExpress.Xpf.Charts.Sankey Namespace