public override void Layout(RectangleF innerRect, RectangleF outerRect) { float small = -2; RectangleF rect = CanvasRenderEngine.MaxSquare(ParamControlHelper.ParamLayoutBase(this.Target.Attributes, Width, outerRect)); rect.Inflate(small, small); this.Bounds = rect; }
public override void Layout(RectangleF innerRect, RectangleF outerRect) { this.Bounds = ParamControlHelper.UpDownSmallRect(ParamControlHelper.ParamLayoutBase(this.Target.Attributes, Width, outerRect, inflate: false)); }