title: WPF rounded corner textbox
body: <p>I don't know WPF and am now learning it. I was looking for rounded corners <code>TextBox</code> in WPF. So I searched Google and found a piece of <code>XAML</code> :</p>
  
  <pre><code> &lt;!–Rounded Corner TextBoxes–&gt;
  &lt;ControlTemplate x:Key=”RoundTxtBoxBaseControlTemplate” TargetType=”{x:Type Control}”&gt;
  &lt;Border Background=”{TemplateBinding Background}” x:Name=”Bd” BorderBrush=”{TemplateBinding BorderBrush}”
  BorderThickness=”{TemplateBinding BorderThickness}” CornerRadius=”6″&gt;
  &lt;ScrollViewer x:Name=”PART_ContentHost”/&gt;
  &lt;/Border&gt;
  &lt;ControlTemplate.Triggers&gt;
  &lt;Trigger Property=”IsEnabled” Value=”False”&gt;
  &lt;Setter Property=”Background” Value=”{DynamicResource {x:Static SystemColors.ControlBrushKey}}” TargetName=”Bd”/&gt;
  &lt;Setter Property=”Foreground” Value=”{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}”/&gt;
  &lt;/Trigger&gt;
  &lt;Trigger Property=”Width” Value=”Auto”&gt;
  &lt;Setter Property=”MinWidth” Value=”100″/&gt;
  &lt;/Trigger&gt;
  &lt;Trigger Property=”Height” Value=”Auto”&gt;
  &lt;Setter Property=”MinHeight” Value=”20″/&gt;
  &lt;/Trigger&gt;
  &lt;/ControlTemplate.Triggers&gt;
  &lt;/ControlTemplate&gt;
  </code></pre>
  
  <p>So please tell me where to paste this <code>XAML</code>. Please help me in detail. I am a beginner in WPF.</p>