Exemplo n.º 1
0
 public override void Draw()
 {
     DrawX.DrawFilledRect(Area, BackGroundColor);
     if (HasFocus)
     {
         DrawX.DrawShapeOutline(Area, BorderColor);
     }
     Font.Draw(DrawString, Position + 1f, TextColor, Alignment.TopLeft, -5);
 }
Exemplo n.º 2
0
 public override void Draw()
 {
     DrawX.DrawFilledRect(ScrollbarRect, BackgroundColor, Depth);
     DrawX.DrawFilledRect(SliderRect, Dragging ? SliderColorDragging : Hovering ? SliderColorHovering : SliderColor, Depth);
 }