void SetLineProperties() { _line.BackgroundColor = _lineColor.ToUIColor(); var textRect = _nativeView.TextRect(_nativeView.Bounds); _line.Frame = new CGRect(textRect.X, textRect.Y + textRect.Height + 3.0f, textRect.Width, _lineHeight); }
//Update line height and color void UpdateLineProperties() { _lineColor = FloatingLabelEntryLineEffect.GetLineColor(Element); _lineHeight = FloatingLabelEntryLineEffect.GetLineHeight(Element); _line.BackgroundColor = _lineColor.ToUIColor(); var textRect = _nativeView.TextRect(_nativeView.Bounds); _line.Frame = new CGRect(textRect.X, textRect.Y + textRect.Height + 2.0f, textRect.Width, _lineHeight); }