In my app there’s a FileTreeComponent which is used to display the HD’s content.
I want the user to search a file by entering a text fragment of it and pressing Enter. After pressing Enter this File should be shown in the FileTreeComponent, even if it was not fully opened.
For example, the FileTreeComponent shows the 2 directories:
C:
MyDocuments
MyMusic
Then the user enters “De la Soul” and presses Enter. The File “De la Soul - Ring Ring Ring” is located in the directory “MyMusic/De La Soul” and so the FileTreeComponent should look like this:
C:
MyDocuments
MyMusic
De La Soul
De La Soul - Ring Ring Ring …
…
…
…
How do I achieve this? I have no clue how to do it at the moment, because it seems that only the viewed TreeViewItems are already part of the FileTreeComponent, not the ones that are not viewed.

