Back to Devexpress

Pane.DomainBrush Property

wpf-devexpress-dot-xpf-dot-charts-dot-pane-7acb70e4.md

latest1.7 KB
Original Source

Pane.DomainBrush Property

Gets or sets the color of the area between diagram axes.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public Brush DomainBrush { get; set; }
vb
Public Property DomainBrush As Brush

Property Value

TypeDescription
Brush

The color of the area between diagram axes.

|

Remarks

The following example paints the area between axes light green:

xaml
<dxc:XYDiagram2D >
  <dxc:XYDiagram2D.DefaultPane>
    <dxc:Pane DomainBrush="LightGreen" />
  </dxc:XYDiagram2D.DefaultPane>
</dxc:XYDiagram2D>

Result:

Set the DomainBrush property to Transparent to make a pane transparent:

xaml
<dxc:ChartControl Background="{x:Null}" >
    <dxc:XYDiagram2D >
        <dxc:XYDiagram2D.DefaultPane>
            <dxc:Pane DomainBrush="Transparent" />
        </dxc:XYDiagram2D.DefaultPane>
        <!--...-->
    </dxc:XYDiagram2D>
</dxc:ChartControl>

See Also

Pane Class

Pane Members

DevExpress.Xpf.Charts Namespace