コード例 #1
0
ファイル: ListView.xaml.cs プロジェクト: chencai01/iFactr-WPF
        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
ファイル: PasswordBox.cs プロジェクト: chencai01/iFactr-WPF
 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
ファイル: BaseView.cs プロジェクト: chencai01/iFactr-WPF
 public virtual void SetBackground(UI.Color color)
 {
     Background = color.IsDefaultColor ? null : color.GetBrush();
 }