Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to allow a user to type in a combo box

Tags:

c#

wpf

Simple question how do you do this http://www.silverlightshow.net/Storage/demos/ComboBoxDemo/ComboBoxDemo.html in WPF using c#

like image 834
hidden Avatar asked Apr 05 '11 21:04

hidden


People also ask

How do I make my combo box not editable?

To make the text portion of a ComboBox non-editable, set the DropDownStyle property to "DropDownList". The ComboBox is now essentially select-only for the user. You can do this in the Visual Studio designer, or in C# like this: stateComboBox.

How do you use a combo box?

Right-click the combo box and pick Format Control. Input range: Type the range of cells containing the list of items. Cell link: The combo box can be linked to a cell where the item number is displayed when you select an item from the list. Type the cell number where you want the item number displayed.

How do you bind a combo box?

To bind a ComboBox or ListBox control If you are binding to a table, set the DisplayMember property to the name of a column in the data source. If you are binding to an IList, set the display member to a public property of the type in the list.


1 Answers

There's a property in WPF ComboBoxes called IsEditable, if you enable this, it effectively becomes a TextBox with the dropdown of a normal ComboBox. I think this is what you're looking for.

like image 130
Lyise Avatar answered Oct 08 '22 08:10

Lyise