Skip to main content

Pane.DomainBrush Property

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

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public Brush DomainBrush { get; set; }

Property Value

Type Description
Brush

The color of the area between diagram axes.

Remarks

The following example paints the area between axes light green:

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

Result:

DomainBrush Property

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

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