What do I have to change to the following code so that the background is red, neither of the 2 ways I tried worked:
(source: deviantsart.com)
The Background property expects a Brush object, not a string. Change the type of the property to Brush and initialize it thus:
Background
Brush
Background = new SolidColorBrush(Colors.Red);