示例#1
0
        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();
            }
        }
示例#2
0
 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,
     });
 }
示例#3
0
 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
     });
 }
示例#4
0
 public virtual void SetBackground(UI.Color color)
 {
     Background = color.IsDefaultColor ? null : color.GetBrush();
 }