title: Dotted border on ListBoxItem in WPF
body: <p>How can I make the default border on my ListBoxItems a dotted border? See following way of styling it:</p>
  
  <pre><code>&lt;Grid.Resources&gt;
      &lt;Style TargetType="{x:Type ListBoxItem}"&gt;
          &lt;Setter Property="Height" Value="30" /&gt;
          &lt;Setter Property="BorderThickness" Value="0,0,0,1" /&gt;
          &lt;Setter Property="BorderBrush" Value="Silver" /&gt;
          &lt;Setter Property="Content" Value="" /&gt;
          &lt;Style.Triggers&gt;
              &lt;Trigger Property="ItemsControl.AlternationIndex" Value="3"&gt;
                  &lt;Setter Property="BorderBrush" Value="Black"&gt;&lt;/Setter&gt;
              &lt;/Trigger&gt;
          &lt;/Style.Triggers&gt;
      &lt;/Style&gt;
  &lt;/Grid.Resources&gt;
  </code></pre>
  
  <p>Here I make the AlternationIndex 0, 1 and 2 to a dotted border instead of a solid line. How can this be done?</p>