Why might a silverlight ListBox on Windows Phone not allow me scroll all the way down to the bottom?

Posted by Byron Sommardahl on Stack Overflow See other posts from Stack Overflow or by Byron Sommardahl
Published on 2010-06-11T01:51:28Z Indexed on 2010/06/12 3:52 UTC
Read the original article Hit count: 255

Filed under:
|
|

I have a ListBox in a grid that gets databound when the page loads... pretty straightforward. The problem I'm having is that, after the box is databound, I can scroll... but not all the way to the bottom of the list. It stops an item or two short and won't let me scroll anymore. Here's the listbox XAML:

<Grid x:Name="ContentGrid" Grid.Row="2">
        <ListBox x:Name="lbFeed" ItemsSource="{Binding Items}" SelectionChanged="lbFeed_SelectionChanged" VerticalAlignment="Top" Width="480">
            <ListBox.ItemTemplate>
                <DataTemplate x:Key="MyDataTemplate">
                    <StackPanel Orientation="Vertical" Width="430">
                        <TextBlock Text="Some text" TextAlignment="Center" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>

I can post more code, but I'm still getting my feet wet in XAML and I'm not sure what might be causing this. If you need more context, let me know and I'll add it here.

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about xaml