public SmartComboBoxThemeBase()
        {
            TextBoxMarginEditable = new Padding(4);
            TextBoxMarginNotEditable = new Padding(2, 1, 2, 1);
            RightButtonMargin = Padding.Empty;
            RightButtonWidth = 21;

            HowBackgroundRender = BackgroundStyle.Flat;

            BorderRoundedRadius = 0;
            BackColorNormal = BackColorHover = Color.White;
            BorderColorNormal = Color.FromArgb(174, 174, 174);
            BorderColorHover = Color.FromArgb(123, 123, 123);

            ComboTextFont = new Font("微软雅黑", 9.0f);
            ComboTextColor = Color.Black;

            DrawBorder = true;

            RightButtonTheme = new ThemeButtonDefaultComboBox();
            ListBoxTheme = new SmartListBoxThemeBase();

            DropDownBorderColor = Color.DarkGray;
            DropDownBackColor = Color.FromArgb(233, 233, 233);
            ResizeGridColor = Color.FromArgb(125, 125, 125);
        }
Ejemplo n.º 2
0
 public void SetNewTheme(SmartListBoxThemeBase xtheme)
 {
     InnerListBox.SetNewTheme(xtheme);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 为ListBox设置新的主题
 /// </summary>
 /// <param name="xtheme"></param>
 public void SetNewTheme(SmartListBoxThemeBase xtheme)
 {
     if (xtheme == null)
         throw new ArgumentNullException("xtheme");
     _xtheme = xtheme;
     DoWhenThemeChanged();
 }