Articles in this section
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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied