I need to edit some hierarchical structure and I use TreeView with TextBoxes
Short example
<TreeView>
<TreeView.Items>
<TreeViewItem Header="Level 0">
<!-- Level 1-->
<TextBox Margin="5"
BorderThickness="1" BorderBrush="Black" />
</TreeViewItem>
</TreeView.Items>
</TreeView>
When I type in TextBox, +, -, letters and digits work fine, arrows work but when I press -, Level 0 item collapses and when I type *, nothing happens
How should I handle - and * to see them in TextBox as expected?
Edit:
- works if typed as Key.OemMinus but not from numeric keyboard as Key.Subtract
* works if typed as Shift+Key.D8 but not from numeric keyboard as Key.Multiply