How do I get a Horizontal ListBox to scroll horizontally in WP7?
        Posted  
        
            by 
                Steve Steiner
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Steve Steiner
        
        
        
        Published on 2011-01-03T00:50:52Z
        Indexed on 
            2011/01/03
            0:54 UTC
        
        
        Read the original article
        Hit count: 241
        
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.
Am I doing something wrong in wpf? Is this a WP7 specific bug?.
    <Style TargetType="ListBox" x:Name="HorizontalListBox">
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <VirtualizingStackPanel Orientation="Horizontal" 
                                            IsItemsHost="True" 
                                            CanHorizontallyScroll="True" 
                                            CanVerticallyScroll="False"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
        © Stack Overflow or respective owner