title: WPF - Pushing Enter on Textbox to execute a command
body: <p>I've seen countless ways to do this - and they all seem more or less the same. But i cannot get this to work at all. </p>
  
  <pre><code>&lt;TextBox x:Name="Assetbox" Text="{UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Center" Width="120" VerticalContentAlignment="Center" Grid.Column="2" Grid.ColumnSpan="3"&gt;
      &lt;TextBox.InputBindings&gt;
          &lt;KeyBinding Key="Return" Command="{Binding IPfind, Mode=OneWay}"/&gt;
      &lt;/TextBox.InputBindings&gt;
  &lt;/TextBox&gt;
  </code></pre>
  
  <p>This is an amalgam of several things i saw, and just about the point where i hit the wall and decided to ask for help. Please - what am i screwing up here?</p>
  
  <p>Pushing enter does nothing at all, The IPfind command works just fine if i run it from a button click, but i'd like to avoid that. Any assistance is greatly appreciated.</p>