Quantcast
Channel: Silverlight Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 801

Commented Issue: Listpicker randomly skips rendering items when bound to large data [10662]

$
0
0
I have a project that requires binding a list of strings to a listpicker control. When the binding is done (either in Loaded or OnNavigatedTo events), the listpicker opens to show the bound items, but some items are randomly missing (in fullscreen mode). When the listpicker starts closing, the missing items seem to appear.

Issue posted on stackoverflow: http://stackoverflow.com/questions/10187829/wp7-listpicker-not-showing-all-items

I have also attached a sample project. Please check it out.
Comments: ** Comment from web user: wieser_software **

I see the same issue with 15 items. The problem appears when scrolling. I think it may have to do with recycling the items.

Here's my code fragment, when filled with 15 items with values 5-75

<StackPanel x:Name="selectSpeeds" Visibility="Collapsed">
<StackPanel.Resources>
<DataTemplate x:Name="SpeedPickerItemTemplate">
<Grid Height="96" Width="96" Margin="12">
<Ellipse HorizontalAlignment="Center" VerticalAlignment="Center"
Height="96" Width="96" Fill="Red" />
<Ellipse HorizontalAlignment="Center" VerticalAlignment="Center"
Height="72" Width="72" Fill="White" />
<TextBlock Text="{Binding value}" Margin="0,-3,0,0"
FontSize="48" HorizontalAlignment="Center" VerticalAlignment="Center"
Foreground="Black" FontWeight="Bold" />
</Grid>
</DataTemplate>
<DataTemplate x:Name="SpeedPickerFullModeItemTemplate">
<Grid>
<Ellipse HorizontalAlignment="Center" VerticalAlignment="Center"
Height="72" Width="72" Fill="Red" />
<Ellipse HorizontalAlignment="Center" VerticalAlignment="Center"
Height="60" Width="60" Fill="White" />
<TextBlock Text="{Binding value}"
FontSize="48" HorizontalAlignment="Center" VerticalAlignment="Center"
Foreground="Black" />
</Grid>
</DataTemplate>
</StackPanel.Resources>

<TextBlock Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap">
An alarm will sound if you are travelling faster than the speed below:
</TextBlock>
<toolkit:ListPicker x:Name="speedLimit" Header="speed limit"
FullModeHeader="Speed Limit"
ItemTemplate="{StaticResource SpeedPickerItemTemplate}"
FullModeItemTemplate="{StaticResource SpeedPickerItemTemplate}"
>

</toolkit:ListPicker>

</StackPanel>


Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>