Пример #1
0
 internal void Draw(PaintEventArgs e, UIControlStatus ucs)
 {
     OnPaint(e, ucs);
 }
Пример #2
0
 public bool DrawExpand(Graphics graphics, UIControlStatus status, Rectangle targetRectangle, int padding)
 {
     return(DrawExpand(graphics, status, targetRectangle, new Padding(padding)));
 }
Пример #3
0
        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);
        }
Пример #4
0
 protected abstract void DrawButton(PaintEventArgs e, TabBarButton button, UIControlStatus ucs);