title: Styling ListView hovered/selected state for Universal Windows Platform
body: <p>I would like to change the default styling of <code>ListView</code> in a Universal Windows Platform app. The default <code>ListView</code> item has a light gray color for hover, light blue for clicked, darker blue for selected item.</p>
  
  <p>I tried to search and I have tried almost every piece of code, but without success. This is my xaml for ListView:</p>
  
  <pre><code>&lt;Page.Resources&gt;
      &lt;DataTemplate x:Key="MasterListViewItemTemplate" x:DataType="model:Thread"&gt;
          &lt;Grid Margin="0,11,0,13"&gt;
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition Width="35"/&gt;
                  &lt;ColumnDefinition/&gt;
              &lt;/Grid.ColumnDefinitions&gt;
              &lt;Ellipse Grid.Column="0" Width="35" Height="35" VerticalAlignment="Top"&gt;
                  &lt;Ellipse.Fill&gt;
                      &lt;ImageBrush ImageSource="{x:Bind Photo}"/&gt;
                  &lt;/Ellipse.Fill&gt;
              &lt;/Ellipse&gt;
              &lt;TextBlock Grid.Column="1" Text="{x:Bind Name}"/&gt;
          &lt;/Grid&gt;
      &lt;/DataTemplate&gt;
  &lt;/Page.Resources&gt;
  
  &lt;ListView
      x:Name="MasterListView"
      ItemContainerTransitions="{x:Null}"
      ItemTemplate="{StaticResource MasterListViewItemTemplate}"
      IsItemClickEnabled="True"
      ItemClick="MasterListView_ItemClick"&gt;
      &lt;ListView.ItemContainerStyle&gt;
          &lt;Style TargetType="ListViewItem"&gt;
              &lt;Setter Property="HorizontalContentAlignment" Value="Stretch" /&gt;
          &lt;/Style&gt;
      &lt;/ListView.ItemContainerStyle&gt;
  &lt;/ListView&gt;
  </code></pre>