my backend code with places autosuggestion works well (I can see it reads the locations from the list in my backend) Now I want to show that list to users when he/she starts to type something in entry by using Text_Changed option. Below is my Text_Changed method ("locationText_Changed"). Now how to show the Prediction list to a user in UI when he/she starts to type some text?
Backend code:
private async void locationText_Changed(object sender, TextChangedEventArgs e)
{
if (location == null)
{
await GetLocation();
}
string formattedLocation = string.Format("{0}%2C{1}", location.Latitude, location.Longitude);
List<Prediction> predictionList = await VenueLogic1.GetVenues1(e.NewTextValue, formattedLocation);
And my UI:
<StackLayout BackgroundColor="BlanchedAlmond" >
<Entry x:Name="locationEntry"
TextChanged="locationText_Changed"
Placeholder="Enter Address"/>
</StackLayout>