title: How to alter the visual behavior of a ListViewItem in UWP?
body: <p>In UWP, every time a <code>ListViewItem</code> is selected, a storyboard is triggered to give the user the feeling the component is reacting to the pressure of a touch. That storyboard also changes the <code>ListViewItem</code>'s background color until it gets released.</p>
  
  <p>I have designed a <code>UserControl</code> which uses a <code>ListView</code> internally but would like to override this behavior as it doesn't really fit the application's proposed design.</p>
  
  <p>Bellow are the <code>VisualStateGroups</code> I tried to apply both to the <code>ListView</code> through its <code>ControlTemplate</code> and to <code>ListViewItem</code> through its <code>DataTemplate</code> definition as the former attempt failed.</p>
  
  <pre><code>&lt;VisualStateManager.VisualStateGroups&gt;
      &lt;VisualStateGroup x:Name="CommonStates"&gt;
          &lt;VisualState x:Name="Normal" /&gt;
          &lt;VisualState x:Name="PointerOver" /&gt;
          &lt;VisualState x:Name="Pressed" /&gt;
          &lt;VisualState x:Name="PointerOverPressed" /&gt;
          &lt;VisualState x:Name="Disabled" /&gt;
      &lt;/VisualStateGroup&gt;
      &lt;VisualStateGroup x:Name="FocusStates"&gt;
          &lt;VisualState x:Name="Focused" /&gt;
          &lt;VisualState x:Name="UnFocused" /&gt;
          &lt;VisualState x:Name="PointerFocused" /&gt;
      &lt;/VisualStateGroup&gt;
      &lt;VisualStateGroup x:Name="SelectionStates"&gt;
          &lt;VisualState x:Name="Unselecting" /&gt;
          &lt;VisualState x:Name="Unselected" /&gt;
          &lt;VisualState x:Name="UnselectedPointerOver" /&gt;
          &lt;VisualState x:Name="UnselectedSwiping" /&gt;
          &lt;VisualState x:Name="Selecting" /&gt;
          &lt;VisualState x:Name="Selected" /&gt;
          &lt;VisualState x:Name="SelectedSwiping" /&gt;
          &lt;VisualState x:Name="SelectedUnfocused" /&gt;
      &lt;/VisualStateGroup&gt;
  &lt;/VisualStateManager.VisualStateGroups&gt;
  </code></pre>
  
  <p>One possibility could be to bind the root grid of the <code>DataTemplate</code> to the <code>ItemsContainer</code> so that I could override the default behavior every time an item was selected. But I am not that versed in XAML and couldn't figure out the proper way of doing this by myself. </p>