Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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