Skip to main content
A newer version of this page is available. .

Pane.DomainBrush Property

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

Namespace: DevExpress.Xpf.Charts

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

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>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DomainBrush property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also