public class CustomRendererAndroid : SfAutoCompleteRenderer
{
public CustomRendererAndroid()
{
}
protected override void OnElementChanged(ElementChangedEventArgs<Syncfusion.SfAutoComplete.XForms.SfAutoComplete> e)
{
base.OnElementChanged(e);
if (Control != null)
{
Control.FocusChanged += Control_FocusChanged;
}
}
private void Control_FocusChanged(object sender, Com.Syncfusion.Autocomplete.FocusChangedEventArgs e)
{
if (e.HasFocus)
{
if (Control != null)
{
Control.InputType = Android.Text.InputTypes.TextFlagCapCharacters;
}
}
}
} |