Disabling AutoComplete

By default, a user can type in the in the combo box's selection box to locate the item they want to select; you can disable this feature by setting the AutoComplete property to False.

In the Designer

Complete the following steps:

1.   Click the C1ComboBox control once to select it.

2.   In the Properties window, clear the AutoComplete check box.

In XAML

To disable AutoComplete, add AutoComplete="False" to the <c1:C1ComboBox> tag so that the markup resembles the following:

 

<c1:C1ComboBox HorizontalAlignment="Left" Width="249" AutoComplete="False">

In Code

Complete the following steps:

1.   Open the MainPage.xaml.cs page.

2.   Add the following code beneath the InitializeComponent() method:

      Visual Basic

      C#

3.   Run the program.

 This Topic Illustrates the Following:

In this topic, you disabled the AutoComplete feature by setting the AutoComplete property to False. If you run the program and try to enter text, the control will not recommend a selection. 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.