Exemplo n.º 1
0
        protected void InitComponents()
        {
            headerPanel = new FancyPanel()
            {
                Location           = new System.Drawing.Point(0, 0),
                Dock               = DockStyle.Top,
                MaximumSize        = new System.Drawing.Size(0, _HeaderHeight),
                GradientStartColor = _HeaderColor,
                GradientEndColor   = _HeaderColor,
                RoundCornerRadius  = _HeaderCornerRadius,
            };

            contentPanel = new FancyPanel()
            {
                Location           = new System.Drawing.Point(0, _HeaderHeight),
                Dock               = DockStyle.Fill,
                MaximumSize        = new System.Drawing.Size(0, this.Height - _HeaderHeight),
                GradientStartColor = Color.White,
                GradientEndColor   = Color.White
            };
        }
Exemplo n.º 2
0
        protected void InitComponents()
        {
            headerPanel = new FancyPanel()
            {
                Location = new System.Drawing.Point(0,0),
                Dock = DockStyle.Top,
                MaximumSize = new System.Drawing.Size(0, _HeaderHeight),
                GradientStartColor = _HeaderColor,
                GradientEndColor = _HeaderColor,
                RoundCornerRadius = _HeaderCornerRadius,

            };

            contentPanel = new FancyPanel()
            {
                Location = new System.Drawing.Point(0, _HeaderHeight),
                Dock = DockStyle.Fill,
                MaximumSize = new System.Drawing.Size(0, this.Height-_HeaderHeight),
                GradientStartColor = Color.White,
                GradientEndColor = Color.White
            };
        }