title: Single Row Horizontally Scrolling/Swipeable GridView
body: <p>I wanted a single-row GridView that can be scrolled horizontally both with mouse and touch swipe. The GridView is to present images through binding so that a single image will be selected from an array of images.</p>
  
  <p>Everything works fine (binding, image selection, etc.) except that the horizontal scroll doesn't work. The XAML code is shown below.</p>
  
  <p>What am I missing?</p>
  
  <pre><code>&lt;GridView x:Name="IconGridView"
      Grid.Row="0"
      Margin="8,12"
      DataContext="{x:Bind IconManagerObj}"
      DoubleTapped="{x:Bind IconGridView_DoubleTapped}"
      IsItemClickEnabled="True"
      IsSwipeEnabled="True"
      ItemsSource="{Binding Path=IconImageInfo}"
      ScrollViewer.HorizontalScrollBarVisibility="Auto"
      ScrollViewer.HorizontalScrollMode="Enabled"
      ScrollViewer.VerticalScrollMode="Disabled"
      SelectionMode="Single"
      Tapped="{x:Bind IconGridView_Tapped}"&gt;
  
      &lt;GridView.ItemsPanel&gt;
          &lt;ItemsPanelTemplate&gt;
              &lt;ItemsWrapGrid Orientation="Horizontal" /&gt;
          &lt;/ItemsPanelTemplate&gt;
      &lt;/GridView.ItemsPanel&gt;
  
      &lt;GridView.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;StackPanel Margin="4,8"
              HorizontalAlignment="Center"
              BorderBrush="{ThemeResource SubtleBlueBrush}"
              BorderThickness="1"&gt;
                 &lt;Image Width="150" Source="{Binding IconImage}Stretch="Uniform"/&gt;
             &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
      &lt;/GridView.ItemTemplate&gt;
  &lt;/GridView&gt;
  </code></pre>