Provided that mBackGroundBrush
is a modifiable SolidColorBrush
(i.e. it is created in your application and none of the predefined brushes), you could simply change its Color
property. That will change the fill color of each drawn geometry with redrawing.
private SolidColorBrush mBackGroundBrush = new SolidColorBrush(Colors.Black);
...
mBackGroundBrush.Color = Colors.Red;
or
mBackGroundBrush.Color = Color.FromArgb(255, 255, 0, 0);