title: WPF Usercontrol with textboxes
body: <p>I have a WPF user control with a number of textboxes, this is hosted on a WPF window.
  The textboxes are not currently bound but I cannot type into any of them.</p>
  
  <p>I have put a breakpoint in the KeyDown event of one of the textboxes and it hits it fine and I can see the key I pressed.</p>
  
  <p>The textboxes are declared as 
  <code></p>
  
  <pre><code> &lt;TextBox Grid.Row="3"
            Grid.Column="4"
            x:Name="PostcodeSearch"
            Style="{StaticResource SearchTextBox}"
            KeyDown="PostcodeSearch_KeyDown"/&gt;
  </code></pre>
  
  <p></code></p>
  
  <p>The style is implemented as </p>
  
  <p><code></p>
  
  <pre><code>&lt;Style x:Key="SearchTextBox"
         TargetType="{x:Type TextBox}"&gt;
          &lt;Setter Property="Control.Margin" Value="2"/&gt;
          &lt;Setter Property="Height" Value="20"/&gt;
          &lt;Setter Property="Width" Value="140"/&gt;
          &lt;Setter Property="HorizontalAlignment" Value="Left"/&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p></code></p>
  
  <p>I am hoping I have overlooked something obvious.</p>
  
  <p>EDIT: I only added the KeyDown and KeyUp events just to prove that the keys presses were getting through. I do not have any custom functionality.</p>