private void LayoutValueView() { var rect = new CGRect(contentView.Bounds.Location, contentView.Bounds.Size); var bounds = new UIEdgeInsets(0, valueViewMargin, 0, valueViewMargin).InsetRect(rect); var centerX = fraction * bounds.Size.Width + bounds.GetMinX(); SetValueViewPositionX(centerX); }