<TextBox Name="xx" > <TextBox.InputBindings> <KeyBinding Command="{Binding MyCommand}" Key="Enter" CommandParameter="{Binding ElementName=xx}"/> </TextBox.InputBindings> </TextBox>
<TextBox Name="xx" > <TextBox.InputBindings> <KeyBinding Command="{Binding MyCommand}" Key="Enter" CommandParameter="{Binding ElementName=xx}"/> </TextBox.InputBindings> </TextBox>