title: SurfaceListBox Selected Item Template
body: <p>I am using the Microsoft Surface SDK and I am having trouble styling the selected item.</p>
  
  <p>So far I have:</p>
  
  <pre><code>&lt;s:SurfaceListBox Name="listy" Background="Transparent"
                      FontSize="50" Foreground="White" BorderBrush="White"
                      HorizontalContentAlignment="Center"
                      Margin="5,5,5,100" SelectionMode="Single"&gt;
      &lt;s:SurfaceListBox.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;TextBlock Text="{Binding}" Foreground="White" /&gt;
          &lt;/DataTemplate&gt;
      &lt;/s:SurfaceListBox.ItemTemplate&gt;
      &lt;s:SurfaceListBox.ItemContainerStyle&gt;
          &lt;Style TargetType="ListBoxItem"&gt;
              &lt;Setter Property="Template"&gt;
                  &lt;Setter.Value&gt;
                      &lt;ControlTemplate TargetType="{x:Type ListBoxItem}"&gt;
                          &lt;ContentPresenter HorizontalAlignment="Center" /&gt;
                          &lt;ControlTemplate.Triggers&gt;
                              &lt;Trigger Property="IsSelected" Value="True"&gt;
                                  &lt;Setter Property="Background" Value="Grey" /&gt;
                              &lt;/Trigger&gt;
                          &lt;/ControlTemplate.Triggers&gt;
                      &lt;/ControlTemplate&gt;
                  &lt;/Setter.Value&gt;
              &lt;/Setter&gt;
          &lt;/Style&gt;
      &lt;/s:SurfaceListBox.ItemContainerStyle&gt;
  &lt;/s:SurfaceListBox&gt;
  </code></pre>
  
  <p>But that fails, and there are no tutorials for this at all on the internet - i searched for hours.</p>
  
  <p>Thanks for any help!</p>