Important:
Make sure you’re using System.Windows.Media.Brush
and not System.Drawing.Brush
They’re not compatible and you’ll get binding errors.
The color enumeration you need to use is also different
System.Windows.Media.Colors.Aquamarine (class name is
Colors
) <— use this oneSystem.Drawing.Color.Aquamarine (class name is
Color
)
If in doubt use Snoop
and inspect the element’s background property to look for binding errors – or just look in your debug log.