Category / Section
How to clear the Text in AutoComplete
1 min read
You can clear the text inside the SfAutoComplete control by assigning the String.Empty or using the Clear() method in SfAutoComplete.
C#
public partial class MainPage : ContentPage { public MainPage() { InitializeComponent(); this.BindingContext = new EmployeeViewModel(); } void Handle_Clicked(object sender, System.EventArgs e) { autoComplete.Clear(); // autoComplete.Text = String.Empty; } }
You can find the sample from this link : Sample