I have a textbox inside the TreeViewItem. The textbox doesn't lose focus when selecting another item in the treeview or in the application. The user can select a TreeViewItem, which enables focus on the Textbox, and then select another TreeViewItem, which will also enable focus on the second TextBox. The expected results should be the TextBox is only focused when the user manually clicks on the TreeViewItem.
Is there a way to force the textbox to lose focus in a TreeViewItem?