protected override SizeF ArrangeOverride(SizeF finalSize) { finalSize.Width -= 36; base.ArrangeOverride(finalSize); finalSize.Width += 36; pinImage.Arrange(new RectangleF(finalSize.Width - 36, 0, 36, 36)); return(finalSize); }
protected override SizeF ArrangeOverride(SizeF finalSize) { RectangleF clientRect = this.GetClientRectangle(finalSize); SizeF size = base.ArrangeOverride(finalSize); indicator.Arrange(clientRect); RectangleF lmpRect = new RectangleF(this.ColorBox.DesiredSize.Width, clientRect.Y, clientRect.Width - this.ColorBox.DesiredSize.Width, clientRect.Height); lmpRect.Width -= indicator.DesiredSize.Width; this.Layout.Arrange(lmpRect); return(size); }