//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); }
protected override void OnAttached() { _effect = (FloatingLabelEntryLineEffect)Element.Effects.FirstOrDefault(m => m is FloatingLabelEntryLineEffect); _nativeView = Control as FloatingLabelEntryNativeView; if (_effect != null && _nativeView != null) { _nativeView.PlaceholderRectSet += HandlePlaceholderRectSet; } }