title: How do I make WPF ListView items repeat horizontally, like a horizontal scrollbar?
body: <p>I have a WPF ListView which repeats the data vertically. I cannot figure out how to make it repeat horizontally, like the slideshow view in Windows Explorer. My current ListView definition is:</p>
  
  <pre><code>&lt;ListView ItemsSource="{StaticResource MyDataList}" ItemTemplate="{StaticResource ListViewTemplate}"&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>The DataTemplate is (although I believe this should not matter);
   
              
                  
                      
                          
                          
                      
                      
                          
                      
                      
                          
                              
                                  
                                  
                                  
                                  
                              
                          
                      </p>
  
  <pre><code>                &lt;Rectangle HorizontalAlignment="Stretch" Margin="0,1,0,0" x:Name="rectReflection" Width="Auto" Grid.Row="1" Height="30"&gt;
                      &lt;Rectangle.Fill&gt;
                          &lt;VisualBrush Stretch="None" AlignmentX="Center" AlignmentY="Top" Visual="{Binding ElementName=imgPhoto}"&gt;
                              &lt;VisualBrush.RelativeTransform&gt;
                                  &lt;TransformGroup&gt;
                                      &lt;MatrixTransform Matrix="1,0,0,-1,0,0" /&gt;
                                      &lt;TranslateTransform Y="1" /&gt;
                                  &lt;/TransformGroup&gt;
                              &lt;/VisualBrush.RelativeTransform&gt;
                          &lt;/VisualBrush&gt;
                      &lt;/Rectangle.Fill&gt;
                      &lt;Rectangle.OpacityMask&gt;
                          &lt;RadialGradientBrush GradientOrigin="0.5,1.041"&gt;
                              &lt;RadialGradientBrush.RelativeTransform&gt;
                                  &lt;TransformGroup&gt;
                                      &lt;ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.202" ScaleY="2.865"/&gt;
                                      &lt;SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/&gt;
                                      &lt;RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/&gt;
                                      &lt;TranslateTransform X="-0.002" Y="-0.491"/&gt;
                                  &lt;/TransformGroup&gt;
                              &lt;/RadialGradientBrush.RelativeTransform&gt;
                              &lt;GradientStop Color="#D9000000" Offset="0"/&gt;
                              &lt;GradientStop Color="#01FFFFFF" Offset="0.8"/&gt;
                          &lt;/RadialGradientBrush&gt;
                      &lt;/Rectangle.OpacityMask&gt;
                  &lt;/Rectangle&gt;
              &lt;/Grid&gt;
          &lt;/Border&gt;
      &lt;/DataTemplate&gt;
  </code></pre>