Exemplo n.º 1
0
        public override void DrawPanel(GraphicsContext gfx, PanelStyles style)
        {
            var color = Color.GhostWhite;

            switch (style)
            {
            case PanelStyles.Dark:
                color = color.Darken(0.5F);
                break;

            case PanelStyles.Light:
                color = Color.White;
                break;
            }

            gfx.FillRectangle(0, 0, gfx.Width, gfx.Height, color);
        }
Exemplo n.º 2
0
        public override void DrawPanel(GraphicsContext gfx, PanelStyles style)
        {
            switch (style)
            {
            case PanelStyles.Dark:
                gfx.Clear(_controlDark);
                break;

            case PanelStyles.Default:
                gfx.Clear(_controlRegular);
                break;

            case PanelStyles.Light:
                gfx.Clear(_controlLight);
                break;
            }
        }
Exemplo n.º 3
0
 public abstract void DrawPanel(GraphicsContext gfx, PanelStyles style);
Exemplo n.º 4
0
        // --------------------------------------------------------------------------------------------------------------------

        /// <summary> Configures a panel component for rendering on a web view page. </summary>
        /// <param name="panelStyle"> (Optional) Style of the panel. </param>
        /// <returns> The panel instance. </returns>
        public Panel Configure(PanelStyles panelStyle = PanelStyles.Default)
        {
            EnableAutomaticID = true;
            PanelStyle        = panelStyle;
            return(this);
        }