Home > Mobile >  How can I prevent Text suggestions in an Entry in Xamarin Forms?
How can I prevent Text suggestions in an Entry in Xamarin Forms?

Time:02-15

Is it possible to disable text suggestions for a Xamarin.Forms entry? I expected that this is done by IsTextPredictionEnabled = false, but this value seems to have no affect on the Entry, at least as of Xamarin Forms 5.0.0.2291.

I have created a test screen with the following code:

var entry1 = new Entry();
entry1.Text = "Default";
entry1.WidthRequest = 300;
entry1.IsSpellCheckEnabled = true;
entry1.IsTextPredictionEnabled = true;
absoluteLayout.Children.Add(entry1);

var entry2 = new Entry();
entry2.IsSpellCheckEnabled = false;
entry2.IsTextPredictionEnabled = false;
entry2.Text = "No SpellCheck/Prediction";
entry2.WidthRequest = 300;
entry2.Margin = new Thickness (0, 60, 0, 0);
absoluteLayout.Children.Add(entry2);

This produces the following behavior. Notice that both entries behave the same regardless of the IsSpellCheckEnabled or IsTextPredictionEnabled values.

enter image description here

According to the documentation here, this should work: enter image description here

  • Related