public override void SetBackground(UI.Color color) { base.SetBackground(color); firstColumnItems.Background = color.IsDefaultColor ? null : color.GetBrush(); if (secondColumnItems != null) { secondColumnItems.Background = color.IsDefaultColor ? null : color.GetBrush(); } }
private TextBlock GetPlaceholderBlock() { return(new TextBlock() { FontFamily = passwordBox.FontFamily, FontSize = passwordBox.FontSize, FontStyle = passwordBox.FontStyle, FontWeight = passwordBox.FontWeight, Foreground = placeholderColor.GetBrush(), Text = placeholder ?? string.Empty, }); }
private TextBlock GetPlaceholderBlock() { return(new TextBlock() { FontFamily = this.FontFamily, FontSize = this.FontSize, FontStyle = this.FontStyle, FontWeight = this.FontWeight, Foreground = placeholderColor.GetBrush(), Text = placeholder ?? string.Empty, TextWrapping = this.TextWrapping }); }
public virtual void SetBackground(UI.Color color) { Background = color.IsDefaultColor ? null : color.GetBrush(); }