void SetHasBorder(WEntry view) { if (!view.HasBorder) { Control.SetBackgroundColor(Color.Transparent.ToAndroid()); Control.SetPadding(0, 0, 0, 0); } }
void SetSuggestionsBarVisibleProperty(WEntry view) { if (!view.SuggestionsBarVisible) { Control.InputType = Control.InputType | InputTypes.TextFlagNoSuggestions; Control.PrivateImeOptions = "nm"; } }
void SetSuggestionsBarVisibleProperty(WEntry view) { if (!view.SuggestionsBarVisible) { Control.AutocorrectionType = UITextAutocorrectionType.No; } else { Control.AutocorrectionType = UITextAutocorrectionType.Default; } }
void SetReturnKey(WEntry view) { Control.ReturnKeyType = view.ReturnKeyType.GetValueFromDescription(); }
void SetBorder(WEntry view) { Control.BorderStyle = view.HasBorder ? UITextBorderStyle.RoundedRect : UITextBorderStyle.None; }
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); }