internal void Draw(PaintEventArgs e, UIControlStatus ucs) { OnPaint(e, ucs); }
public bool DrawExpand(Graphics graphics, UIControlStatus status, Rectangle targetRectangle, int padding) { return(DrawExpand(graphics, status, targetRectangle, new Padding(padding))); }
protected virtual void DrawButtonBackground(PaintEventArgs e, TabBarButton button, UIControlStatus ucs) { Rectangle rect = button.Bounds; if (rect.Width <= 0 || rect.Height <= 0) { return; } Color backColor; if (button.IsDroppingDown) { //backColor = UITheme.Default.Colors.MenuImageMargin; backColor = Bar.SelectedItemBackColor; } else { switch (ucs) { case UIControlStatus.Hover: backColor = Bar.HoverItemBackColor; break; case UIControlStatus.Selected: backColor = Bar.SelectedItemBackColor; break; default: return; } } e.Graphics.FillRectangle(new SolidBrush(backColor), rect); }
protected abstract void DrawButton(PaintEventArgs e, TabBarButton button, UIControlStatus ucs);