title: How do I get a Horizontal ListBox to scroll horizontally in WP7?
body: <p>I'm attempting to use the code below to make a horizontal listbox in WP7 silverlight.  The items appear horizontally but the scrolling is still vertical. </p>
  
  <p>Am I doing something wrong in wpf? Is this a WP7 specific bug?.</p>
  
  <pre><code>    &lt;Style TargetType="ListBox" x:Name="HorizontalListBox"&gt;
          &lt;Setter Property="ItemsPanel"&gt;
              &lt;Setter.Value&gt;
                  &lt;ItemsPanelTemplate&gt;
                      &lt;VirtualizingStackPanel Orientation="Horizontal" 
                                              IsItemsHost="True" 
                                              CanHorizontallyScroll="True" 
                                              CanVerticallyScroll="False"/&gt;
                  &lt;/ItemsPanelTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p>Edit: I was missing two properties that appear to make a great deal of difference. (The solution came from the second link in the accepted answer by Mick N.)</p>
  
  <pre><code>    &lt;Style TargetType="ListBox" x:Name="HorizontalListBox"&gt;
          &lt;Setter Property="ItemsPanel"&gt;
              &lt;Setter.Value&gt;
                  &lt;ItemsPanelTemplate&gt;
                      &lt;VirtualizingStackPanel Orientation="Horizontal" IsItemsHost="True" CanHorizontallyScroll="True" CanVerticallyScroll="False"/&gt;
                  &lt;/ItemsPanelTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
          &lt;Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/&gt;
          &lt;Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled"/&gt;
      &lt;/Style&gt;
  </code></pre>