Scrollable Wrappanel in Silverlight

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-04-09T14:50:52Z Indexed on 2010/04/09 14:53 UTC
Read the original article Hit count: 604

How do I make a Wrappanel scrollable? Here's the XAML that I've been using but I get errors with it.

<ItemsControl x:Name="lbMedia">
        <ItemsControl.ItemsPanel>
            <ItemsPanelTemplate>
                <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
                    <c:WrapPanel></c:WrapPanel>
                </ScrollViewer>
            </ItemsPanelTemplate>
        </ItemsControl.ItemsPanel>

        <ItemsControl.ItemTemplate>
            <DataTemplate>
                <im:MediaManagerItem></im:MediaManagerItem>
            </DataTemplate>
        </ItemsControl.ItemTemplate>
    </ItemsControl>

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about wrappanel