You can see this article : WPF Custom Control - FilterControl for ListBox/ListView
[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.