It appears that TextSearch only searches the children of the selected TreeviewItem by default. I would like it to behave like Windows Explorer in that if no child matches then it should check siblings for matches.
For example, if I select the TreeViewItem with the header "B" and type "C" on the keyboard then I would like the TreeViewItem with the header of C to be selected:
<TreeView IsTextSearchEnabled="True">
<TreeViewItem IsTextSearchEnabled="True" Header="A"/>
<TreeViewItem IsTextSearchEnabled="True" Header="B">
<TreeViewItem IsTextSearchEnabled="True" Header="D"/>
<TreeViewItem IsTextSearchEnabled="True" Header="E"/>
<TreeViewItem IsTextSearchEnabled="True" Header="F"/>
</TreeViewItem>
<TreeViewItem IsTextSearchEnabled="True" Header="C"/>
</TreeView>
Any ideas?
EDIT: I would like to continue using the in-built TextSearch functionality if possible.