question

Roy-9225 avatar image
0 Votes"
Roy-9225 asked Roy-9225 commented

[WPF] how to implement a basic SearchBox functionality to filter items in a ListBox

I have been endlessly looking for some sort of solution that is not too complex, all I want is the simplest form of a search box so that when I type in a TextBox it filters out the items in a ListBox if a match is found, Just like how Windows 10 settings page works, If I type F it lists all the items that begin with F in the side bar and if I enter the full name of an item it just displays the matched item. I have attempted several times to do this but it ends up not working properly and its messy. I don't need any fancy features.


Below is an example of what I'm trying to achieve. This is the Windows 11 settings page.

https://youtu.be/96wF01RNBwA


dotnet-csharpwindows-wpf
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Castorix31 avatar image
0 Votes"
Castorix31 answered Roy-9225 commented
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the reply, I will take a look at it tomorrow and test it out.

0 Votes 0 ·