public override void Draw(IGraphicsAdapter pSystem) { //Draw labels var y = Bounds.Top + ((ActualHeight - BarHeight) / 2); pSystem.DrawText(Min.ToString(), new Rectangle(Position.X, y, _labelWidth, ActualHeight), LabelFont); pSystem.DrawText(Max.ToString(), new Rectangle(_barBounds.Right, y, _labelWidth, ActualHeight), LabelFont); //Draw slider pSystem.DrawRect(_barBounds, Bar); pSystem.DrawElipse(_sliderPosition, _sliderRadius, Grip); //Show value if sliding if (_dragging) { pSystem.DrawText(Value.ToString(), new Rectangle(_sliderPosition, _labelWidth, ActualHeight), LabelFont); } }