/// <summary> /// Updates the Color property any time the text changes /// </summary> protected override void OnTextChanged(System.Windows.Controls.TextChangedEventArgs e) { base.OnTextChanged(e); ColorSetInternally = true; Color = ColorPickerUtil.ColorFromString(this.Text); ColorBrush = new SolidColorBrush(Color); ColorSetInternally = false; }