예제 #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
            };
        }
예제 #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
            };
        }