title: Where in my WPF Style do i Put <Border CornerRadius="8">
body: <p>Ive created a button style that works fine, but now I want to add rounded corners and i can't for the life of me figure out where to put the XAML. Can someone point me in the right direction?</p>
  
  <pre><code>&lt;Style x:Key="myButtonStyle" TargetType="{x:Type Button}"&gt;
      &lt;Setter Property="Foreground" Value="White"/&gt;
      &lt;Setter Property="Background" Value="Blue" /&gt;
      &lt;Setter Property="FontWeight" Value="DemiBold"/&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="{x:Type Button}"&gt;
                  &lt;Grid&gt;
                      &lt;Rectangle x:Name="rectangle" Stroke="{TemplateBinding Background}" Fill="{TemplateBinding Background}" RenderTransformOrigin="0.5,0.5"&gt;
                          &lt;Rectangle.RenderTransform&gt;
                              &lt;TransformGroup&gt;
                                  &lt;ScaleTransform/&gt;
                                  &lt;SkewTransform/&gt;
                                  &lt;RotateTransform/&gt;
                                  &lt;TranslateTransform/&gt;
                              &lt;/TransformGroup&gt;
                          &lt;/Rectangle.RenderTransform&gt;
                          &lt;Rectangle.Effect&gt;
                              &lt;DropShadowEffect ShadowDepth="3"/&gt;
                          &lt;/Rectangle.Effect&gt;
                      &lt;/Rectangle&gt;
                          &lt;ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RenderTransformOrigin="0.5,0.5"&gt;
                          &lt;ContentPresenter.RenderTransform&gt;
                              &lt;TransformGroup&gt;
                                  &lt;ScaleTransform/&gt;
                                  &lt;SkewTransform/&gt;
                                  &lt;RotateTransform/&gt;
                                  &lt;TranslateTransform/&gt;
                              &lt;/TransformGroup&gt;
                          &lt;/ContentPresenter.RenderTransform&gt;
                          &lt;/ContentPresenter&gt;
                  &lt;/Grid&gt;
                  &lt;ControlTemplate.Triggers&gt;
                      &lt;Trigger Property="IsFocused" Value="True"/&gt;
                      &lt;Trigger Property="IsDefaulted" Value="True"/&gt;
                      &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                          &lt;Setter Property="Stroke" Value="Black" TargetName="rectangle"/&gt;
                      &lt;/Trigger&gt;
                      &lt;Trigger Property="IsPressed" Value="True"&gt;
                          &lt;Setter Property="RenderTransform" TargetName="rectangle"&gt;
                              &lt;Setter.Value&gt;
                                  &lt;TransformGroup&gt;
                                      &lt;ScaleTransform/&gt;
                                      &lt;SkewTransform/&gt;
                                      &lt;RotateTransform/&gt;
                                      &lt;TranslateTransform X="2" Y="2"/&gt;
                                  &lt;/TransformGroup&gt;
                              &lt;/Setter.Value&gt;
                          &lt;/Setter&gt;
                          &lt;Setter Property="RenderTransform" TargetName="contentPresenter"&gt;
                              &lt;Setter.Value&gt;
                                  &lt;TransformGroup&gt;
                                      &lt;ScaleTransform/&gt;
                                      &lt;SkewTransform/&gt;
                                      &lt;RotateTransform/&gt;
                                      &lt;TranslateTransform X="2" Y="2"/&gt;
                                  &lt;/TransformGroup&gt;
                              &lt;/Setter.Value&gt;
                          &lt;/Setter&gt;
                          &lt;Setter Property="Effect" TargetName="rectangle"&gt;
                              &lt;Setter.Value&gt;
                                  &lt;DropShadowEffect ShadowDepth="1"/&gt;
                              &lt;/Setter.Value&gt;
                          &lt;/Setter&gt;
                      &lt;/Trigger&gt;
                      &lt;Trigger Property="IsEnabled" Value="False"/&gt;
                  &lt;/ControlTemplate.Triggers&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>