'How can I prevent Text suggestions in an Entry in Xamarin Forms?

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: https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.entry.istextpredictionenabled?view=xamarin-forms

Also here: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/entry

Nothing came up in my searches to indicate that this is broken, so maybe I'm doing something wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source