Example #1
0
 private void SetNullableText(VDatePicker view)
 {
     if (view.NullableDate == null)
     {
         Control.Text = string.Empty;
     }
 }
Example #2
0
 private void SetPlaceholder(VDatePicker view)
 {
     if (view == null)
     {
         return;
     }
     Control.Hint = view.Placeholder;
 }
Example #3
0
 /// <summary>
 /// Sets the color of the placeholder text.
 /// </summary>
 /// <param name="view">The view.</param>
 private void SetPlaceholderTextColor(VDatePicker 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);
     }
 }
Example #4
0
 private void SetPlaceholderTextColor(VDatePicker view)
 {
     if (view == null)
     {
         return;
     }
     if (view.PlaceholderTextColor != Color.Default)
     {
         Control.SetHintTextColor(view.PlaceholderTextColor.ToAndroid());
     }
 }