Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
How I can make an Autocomplete Text Field in WPF?
How I can include multiple value in text field.
Actually I'm trying to make an search bar in which Products are fetched from database and include in text field then.When i type a keyword it should be display an suggestion.
Re-template ComboBox to make it looks like TextBox.
Extend ComboBoxItem so that we can hightlight the already entered part in the dropdown list.
Get reference to the TextBox part of the ComboBox, and hook up TextBox.TextChanged event.
In the TextBox.TextChanged event handler, we filter the underlying datasource and create new list source with our customized ComboBox Items.
Hope this will be helpful.
Thank you
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Hello everyone,I am new here, can I ask a question:
Let's say I have a ListBox (with more than 5k items of all English words ). and a richTextBox.
And a ListBox usually load every items, right? How can I change my ListBox to just load/pick a few (maybe 10 items) from the data?
EXAMPLE:
**When a user type a word, I dont want my ListBox to load every thing starting with the word my user input. I just want my ListBox to load just a few item.(More to like a word prediction software) **
Please give an answer that is not too complicated, since I am a beginner.
Thanks, Teik Fai.
From your question, it looks like you need to implement virtualization on the listbox.
You can either use a VirtualizingStackPanel inside a Listbox as ItemsPanel Template or you use - ItemsControl and set its property VirtualizingStackPanel.IsVirtualizing="True"
This should help.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have an Empty Grid View. When I click on each grid cell I want to add a pop to add items.Kindly give some idea to make my grid cell clickable.My grid view is
please help me
A little bird told me you already have labels inside. SO instead of these you can put Buttons or even better LinkButtons, and depending on how your GridView is created (from the Toolbox or code behind) you can set your Buttons to be clickable like so
LinkButton.Click += new EventHandler(LinkButton_Click);
Set their ID or CommanArgument to be something meaningful to you, and have everything done only trough C#.
BUT since you want to execute a POP (up ?) maybe the best case scenario for you is to workout how to call fancybox and then have
yourLabel.Attributes.Add("onClick", "Fancybox(this.id");
to open a pop-up.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have two combo boxes containing names of city , Names are same in both and are retried from Database
I want that if I select Name in 1st combo box then that name should not be appeared in second combo box
Tell me where i have to implement code and what code i have to read
If you are using databinding, it is going to be difficult to remove unwanted entries ... you will most likely want to use unbound comboboxes and manually read the database on the 1st Combobox.SelectedValueChanged event.
When you read the database, exclude the rows you do not want. Then you can add the items into Combobox #2.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to create list view with indented icon and I came across that:
There is a solution, but it's non-dotnet and I was wondering how I could achieve this with C#?
Thanks!
See this MSDN page. Use the IndentCount property of the ListViewItems.
However see the remark there:
The IndentCount property can be used only when the View property of
the containing ListView is set to Details, and the SmallImageList
property of the ListView is set.
The example there works easily.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
VB6 had a fileListBox with .path property and I am trying to add that property to regular listbox.
ListBox myfilelistbox = new ListBox();
and the one generated with XAML.
I think what you want is Attached Properties
ListBox is a generic control which displays list of items in a linear manner. What you wish to do is to display a hierarchy of items, not a list of them.
There are no such built in controls and you will have to build one for yourself or find some that others have implemented.
Check more information on this other Stack Overflow thread Is there a WPF control which will show a list of files in an Explorer-like view?.
The following article on CodeProject could help you: A WPF File ListView and ComboBox