Example #1
0
        /// <summary>
        /// Initializes a new instance of the Panel class.
        /// </summary>
        public Panel()
        {
            InitializeComponent();

            this.CaptionFont = new Font(SystemFonts.CaptionFont.FontFamily, SystemFonts.CaptionFont.SizeInPoints + 2.75F, FontStyle.Bold);
            this.BackColor   = Color.Transparent;
            this.ForeColor   = SystemColors.ControlText;
            this.ShowTransparentBackground         = true;
            this.ShowXPanderPanelProfessionalStyle = false;
            this.ColorScheme        = ColorScheme.Professional;
            this.LinearGradientMode = LinearGradientMode.Vertical;
            this.Expand             = true;
            this.CaptionHeight      = 27;
            this.ImageSize          = new Size(18, 18);
            this.m_bShowCaptionbar  = true;
            this.m_customColors     = new CustomPanelColors();
            this.m_customColors.CustomColorsChanged += OnCustomColorsChanged;
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the Panel class.
        /// </summary>
        public Panel()
        {
            InitializeComponent();

             this.CaptionFont = new Font(SystemFonts.CaptionFont.FontFamily, SystemFonts.CaptionFont.SizeInPoints + 2.75F, FontStyle.Bold);
             this.BackColor = Color.Transparent;
             this.ForeColor = SystemColors.ControlText;
             this.ShowTransparentBackground = true;
             this.ShowXPanderPanelProfessionalStyle = false;
             this.ColorScheme = ColorScheme.Professional;
             this.LinearGradientMode = LinearGradientMode.Vertical;
             this.Expand = true;
             this.CaptionHeight = 27;
             this.ImageSize = new Size(18, 18);
             this.m_bShowCaptionbar = true;
             this.m_customColors = new CustomPanelColors();
             this.m_customColors.CustomColorsChanged += OnCustomColorsChanged;
        }