I\'m a complete newbie at WPF.
At the moment I\'m making a usercontrol for form elements called \"LabeledTextbox\" which contains a label, a textbox and a textblock for
Does this work? Setting it to black is better than using the ClearValue method
public string ErrorMessage { set { if (string.IsNullOrEmpty(value)) { _textbox.Background = Brushes.Black; } else { _textbox.Background = Brushes.Red; } _errorMessage.Text = value; } }