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); }
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; } }
public abstract void DrawPanel(GraphicsContext gfx, PanelStyles style);
// -------------------------------------------------------------------------------------------------------------------- /// <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); }