All Controls
Edit Background Brush
The background brush of a chart/color can be changed to other brushes.
The first step is to include the necessary namespace
and add a new chart/control.
Change the Background Brush
Below, we will change the background brush of a Histogram control (named histogramControl in the examples below). The process is similar for the other controls:
[Visual Basic]
' Set the background brush to a SolidColorBrush with the color gray
histogramControl.Background = new SolidColorBrush(Colors.Gray)
[Visual C#]
// Set the background brush to a SolidColorBrush with the color gray
histogramControl.Background = new SolidColorBrush(Colors.Gray);
In the chart below, you can test the code to see what the result will look like: