I have a region that I am shading between two plots. Its working well as long as I hard code the color with Brushes.Red or whatever color I want.
I tried creating a property called RegionColor as a public Brushes.
I then also set the default to Brushes.Red or whatever.
I am getting an error in my code which says cannot implicitly convert type system.windows.media.soliccolorbrush to system.window.media.brushes.
I don't exactly understand the conversion because I am setting my RegionColor type to Brushes, so when I set it to Brushes.Red as a default, I don't see why the conversion.
Anyone have any ideas on this one?

Comment