This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
IsEditable property of WPF combobox
I have heard that autocomplete does not work (out of box) in WPF combobox but when I type characters in teh WPF combo, it matches existing items of combo and automatically completes it. Isn't this autocomplete?
Am I missing a point?
The WPF combobox does match existing values as you type, but...
Generally when people refer to an autocomplete combobox they mean a combobox that makes a backend query of some sort that will populate the dropdown with new values that match the criteria as the user types.
Related
how do i get all items to display in a VB6 Combo box that gets data from the Database.
I Only see one topmost item.
i tried changing the combo box style but nothing is working
I answered this question here a couple of days ago (presumably you are also using a Data control; if you are not then mention that and I'll work out another answer). DataSource and DataMember are the wrong properties to be working with. I explain why fully in the other answer.
I'm trying to create a wpf combobox where certain keywords in the item text are always a different color (eg, phrase "abc" should always be blue, even if it's just a part of a longer word). Ideally, this should apply to all templates of the combobox: selected item, dropdown items, and the editing textbox as the user is typing new entries ("IsEditable" is set to true).
My initial thought is to use rich text controls for the templates of the combobox, but I'm having difficulty figuring out how to set the editing template. Even then, I'm not sure how to proceed on enforcing keyword coloring as the user types. Suggestions?
Is it possible if I choose 2 in my numericupdown control I will also have 2 comboboxes??
It's that the comboboxes that will appear will vary from the value of my numericupdown button.
Or Maybe I'm thinking if i input 5 in my numeric updown I will have the choose 5 datas in my combobox and my choices will be stored in a listbox.
Because I'm making a room assignment. for example a customer wishes to rent 5 rooms I should assign him with 5 available rooms. And I want my rooms assignment to be recorded in a listbox so that I can keep track of my mistakes.. Is it Possible??
If my question violated the rule, can somebody just please post links related to this problem. I know I'm a bit annoying to this site and I am very sorry :((
I'm going to take some guesses as to what you are trying to do as it isn't very clear from your question.
If you are asking:
Is it possible to create a Windows Forms dialog which dynamically
displays n ComboBox controls at runtime based on a user supplied
value from a NumericUpDown control?
Then the answer, is: Yes, it's possible. There are several ways to accomplish this, although the simplest would probably be to use one of the layout panels, possibly the TableLayoutPanel or the FlowLayoutPanel. Essentially, you would need to respond to the (probably) the ValueChanged event on the NumericUpDown control. In that event handler, you would then need to programatically create the appropriate number of ComboBox controls (based on the value of the NumericUpDown control) and add them to the layout panel.
I’m using a TreeView control to present a list of Questions. Using the Prism.DataTemplateSelector, I'm loading a View (.xaml file) that represents a single Question into each node in the TreeView. In the View for that question is a ListBox containing RadioButtons (one for each item in a Picklist object that the ListBox is bound to).
The radio buttons work as expected for the question, but when I check a RadioButton on another node/question in the TreeView, the check for the button in the Question I was editing before disappears. In other words, I'm only able to check one RadioButton in the whole list of Questions/Items bound to the containing TreeView. How do I group the RadioButtons in the ListBox to the scope of the single question instead of all the questions in the TreeView.
RadioButton.GroupName is the property you are looking for
I'm using infragistics WPF editors and XamComboEditor. In previous WinForms version there was MRU list capability. What it basically does is it displays list of most recently used items at the beginning of the list and separates those items with some separator (which cannot be selected). Regular list of combo box items follows after this separator.
Now, infragistics combo does not provide this functionallity. I'll have to develop it on my own and the question is how to approach this. My biggest concern is how to modify current combo box (it can be regular wpf one) to actually display it.
Any suggestions are welcome.
To handle the actual UI part you can use CollectionViewSource/ICollectionView's Grouping and optionally Sorting (if you want the MRU to be ordered) to modify the ComboBox's view of the collection. Most of the work is going to be setting up the data which will be specific to your situation but all you'll need to do in the UI after you're bound to a grouped ICollectionView is set a GroupStyle on the ComboBox where you probably want to show a separator only for the non-MRU group and nothing for the MRU.