private void SetNullableText(VTimePicker view) { if (view.NullableTime == null) { Control.Text = string.Empty; } }
private void SetPlaceholder(VTimePicker view) { if (view == null) { return; } Control.Hint = view.Placeholder; }
/// <summary> /// Sets the color of the placeholder text. /// </summary> /// <param name="view">The view.</param> private void SetPlaceholderTextColor(VTimePicker view) { if (!string.IsNullOrEmpty(view.Placeholder)) { var foregroundUIColor = view.PlaceholderTextColor.ToUIColor(CheckColorExtensions.SeventyPercentGrey); var backgroundUIColor = view.BackgroundColor.ToUIColor(); var targetFont = Control.Font; Control.AttributedPlaceholder = new NSAttributedString(view.Placeholder, targetFont, foregroundUIColor, backgroundUIColor); } }
private void SetPlaceholderTextColor(VTimePicker view) { if (view == null) { return; } if (view.PlaceholderTextColor != Color.Default) { Control.SetHintTextColor(view.PlaceholderTextColor.ToAndroid()); } }