Пример #1
0
 void SetHasBorder(WEntry view)
 {
     if (!view.HasBorder)
     {
         Control.SetBackgroundColor(Color.Transparent.ToAndroid());
         Control.SetPadding(0, 0, 0, 0);
     }
 }
Пример #2
0
 void SetSuggestionsBarVisibleProperty(WEntry view)
 {
     if (!view.SuggestionsBarVisible)
     {
         Control.InputType         = Control.InputType | InputTypes.TextFlagNoSuggestions;
         Control.PrivateImeOptions = "nm";
     }
 }
Пример #3
0
 void SetSuggestionsBarVisibleProperty(WEntry view)
 {
     if (!view.SuggestionsBarVisible)
     {
         Control.AutocorrectionType = UITextAutocorrectionType.No;
     }
     else
     {
         Control.AutocorrectionType = UITextAutocorrectionType.Default;
     }
 }
Пример #4
0
 void SetReturnKey(WEntry view)
 {
     Control.ReturnKeyType = view.ReturnKeyType.GetValueFromDescription();
 }
Пример #5
0
 void SetBorder(WEntry view)
 {
     Control.BorderStyle = view.HasBorder ? UITextBorderStyle.RoundedRect : UITextBorderStyle.None;
 }
Пример #6
0
 void SetReturnKey(WEntry view)
 {
     Control.ImeOptions = view.ReturnKeyType.GetValueFromDescription();
     // This is hackie ;-) / A Android-only bindable property should be added to the EntryExt class
     Control.SetImeActionLabel(view.ReturnKeyType.ToString(), Control.ImeOptions);
 }