title: WPF: Styled TextBox Not Showing Cursor
body: <p>I created a style for my textbox, and in order to give it custom border I decided to temper with its <code>ControlTemplate</code>, but when I run the project the cursor does not seem to show in the textbox, why is this and how can I fix it?</p>
  
  <p>The code for my style is below</p>
  
  <pre><code>&lt;Style x:Key="PrimaryTextBox" TargetType="{x:Type TextBox}"&gt;
      &lt;Setter Property="BorderBrush" Value="#FFBAC7DC"/&gt;
      &lt;Setter Property="MinHeight" Value="30"/&gt;
      &lt;Setter Property="MinWidth" Value="40"/&gt;
      &lt;Setter Property="BorderBrush" Value="#FF07172B"/&gt;
      &lt;Setter Property="BorderThickness" Value="2"/&gt;
      &lt;Setter Property="Padding" Value="4"/&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="{x:Type TextBox}"&gt;
                  &lt;Border CornerRadius="3" Padding="4"
                          Background="{TemplateBinding Background}"
                          BorderBrush="{TemplateBinding BorderBrush}"
                          BorderThickness="{TemplateBinding BorderThickness}"&gt;
                      &lt;ContentPresenter Content="{TemplateBinding Text}"/&gt;
                  &lt;/Border&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>And its implementation</p>
  
  <pre><code>&lt;TextBox Style="{StaticResource PrimaryTextBox}"/&gt;
  </code></pre>