I have a treeview with a HierarchicalDataTemplate containing a user control that has a textbox. the textbox has AcceptReturn=true.
If the treeview item has a child node then the treeview does not pass the enter to the UC.
I have this handling the keydown event on the treeview.
How do I pass the enter key down to the textbox in the user control in all cases
If the treeview item has a child node then the treeview does not pass the enter to the UC.
I have this handling the keydown event on the treeview.
private
void
EnterDown(
object
sender, KeyEventArgs e)
{
if
(e.Key == Key.Enter)
{
e.Handled =
false
;
}
}
How do I pass the enter key down to the textbox in the user control in all cases