title: WPF Rectangle with different stroke thickness on sides or Border with dashed stroke?
body: <p>I know I can create a dashed border with a rectangle or a border with different stroke thickness for different sides:</p>
  
  <pre><code>        &lt;StackPanel Orientation="Horizontal"&gt;
              &lt;Rectangle Stroke="Green" StrokeThickness="2" StrokeDashArray="4 2"  Fill="LightGreen" Height="64" Width="32" Margin="5"/&gt;
              &lt;Border BorderBrush="Green" BorderThickness="2,2,2,0" Background="LightGreen" Height="64" Width="32" Margin="5" /&gt;
          &lt;/StackPanel&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/v4LwV.png" alt="enter image description here"></p>
  
  <p>Is there anyway I can achieve both:</p>
  
  <p><img src="https://i.stack.imgur.com/Pqy7d.png" alt="enter image description here"></p>
  
  <p>?</p>
  
  <p>UPDATE: This needs to fill the space in it's parent (unlike my example with fixed sizes), e.g. a Grid - so a DrawingGeometry which has fixed sizes and my own Pen cannot be used to achieve this.. can it?</p>