
Using the TreeListView I want to react to the user pressing the enter key on a textbox that I have added to the cell template of a column. I am listening to the PreviewTextinput event on the text box. It seems the tree item is swallowing up the enter key as I get the other keys that are pressed. I cannot use the EditableContentControl in the column because along with the textbox I have up/down buttons and other controls. I also cannot use a different event because I want to use the e.Text from the event args.
<TextBox x:Name="_inputTextBox" MinHeight="19"
PreviewTextInput="_inputTextBox_PreviewTextInput"
TextAlignment="Right" VerticalAlignment="Center"
Visibility="{Binding ReadOnly, Converter={StaticResource BooleanTrueToVisibilityCollapsedConverter}}"
Padding="16,1,1,1" TextOptions.TextRenderingMode="ClearType" TextOptions.TextFormattingMode="Display"
UndoLimit="99" Style="{Binding TextBoxStyle, ElementName=_root}"/>