title: How to get button border and Half of Oval Style in WPF Button?
body: <p>I have tried to make a button style in wpf. But I have faced to issue.</p>
  
  <p>1) Button Inside Style want to Half of the Oval. 
  <img src="https://i.stack.imgur.com/mGvdp.jpg" alt="enter image description here"></p>
  
  <p>2) Button Border with Gold Color &amp; #872234 Color
  <img src="https://i.stack.imgur.com/Kg3h5.jpg" alt="enter image description here"></p>
  
  <p>My XAML CODE-</p>
  
  <pre><code>&lt;Window x:Class="Kiosk_Testing.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="350" Width="525"&gt;
      &lt;Window.Resources&gt;
          &lt;Style TargetType="{x:Type Button}"&gt;
              &lt;Setter Property="Template"&gt;
                  &lt;Setter.Value&gt;
                      &lt;ControlTemplate TargetType="{x:Type Button}"&gt;  
  
                          &lt;Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ClipToBounds="False"&gt;
                              &lt;Grid.RowDefinitions&gt;
                                  &lt;RowDefinition /&gt;
                                  &lt;RowDefinition /&gt;
                              &lt;/Grid.RowDefinitions&gt;
                              &lt;!-- the background for the button --&gt;
                              &lt;Rectangle RadiusX="20" RadiusY="30" Grid.RowSpan="2"&gt;
                                  &lt;Rectangle.Fill&gt;
                                      &lt;LinearGradientBrush StartPoint="0,0" EndPoint="0,1" &gt;
                                          &lt;LinearGradientBrush.GradientStops&gt;
                                              &lt;GradientStop Color="#872234" Offset="0"/&gt;
                                              &lt;GradientStop Color="#872234" Offset="0.9"/&gt;
                                          &lt;/LinearGradientBrush.GradientStops&gt;
                                      &lt;/LinearGradientBrush&gt;
                                  &lt;/Rectangle.Fill&gt;
                              &lt;/Rectangle&gt;
                              &lt;!-- the "gel" hilight at the top of the button --&gt;
                              &lt;Rectangle RadiusX="20" RadiusY="30" Margin="5"&gt;
                                  &lt;Rectangle.Fill&gt;
                                      &lt;LinearGradientBrush StartPoint="0,0" EndPoint="0,1" &gt;
                                          &lt;LinearGradientBrush.GradientStops&gt;
                                              &lt;GradientStop Color="#C53550" Offset="0.1"/&gt;
                                              &lt;GradientStop Color="#C43551" Offset="0.5"/&gt;
                                              &lt;GradientStop Color="#C43551" Offset="0.9"/&gt;
                                          &lt;/LinearGradientBrush.GradientStops&gt;
                                      &lt;/LinearGradientBrush&gt;
                                  &lt;/Rectangle.Fill&gt;
                              &lt;/Rectangle&gt;
                              &lt;!-- place for the content inside the button to be displayed --&gt;
                              &lt;ContentPresenter Grid.RowSpan="2"   
                                    x:Name="PrimaryContent"
                                    HorizontalAlignment="Center" VerticalAlignment="Center"
                                    Margin="{TemplateBinding Padding}" 
                                    Content="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" 
                                    /&gt;
                          &lt;/Grid&gt;
                      &lt;/ControlTemplate&gt;
                  &lt;/Setter.Value&gt;
              &lt;/Setter&gt;
              &lt;Setter Property="Foreground" Value="gold" /&gt;            
          &lt;/Style&gt;
      &lt;/Window.Resources&gt;
      &lt;Grid&gt;
          &lt;Button BorderThickness="50" HorizontalAlignment="Center" Content="Button" FontSize="26" FontFamily="Times New Roman" VerticalAlignment="Center" Width="163" Height="58" Margin="146,168,194,85"&gt;
              &lt;Button.BorderBrush&gt;
                  &lt;LinearGradientBrush StartPoint="0,0" EndPoint="0,1" &gt;
                      &lt;LinearGradientBrush.GradientStops&gt;
                          &lt;GradientStop Color="Gold" Offset="0.1"/&gt;
                          &lt;GradientStop Color="#C43551" Offset="0.5"/&gt;
                          &lt;GradientStop Color="Gold" Offset="0.9"/&gt;
                      &lt;/LinearGradientBrush.GradientStops&gt;
                  &lt;/LinearGradientBrush&gt;
              &lt;/Button.BorderBrush&gt;
          &lt;/Button&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>