Note that there are some explanatory texts on larger screens.

plurals
  1. POProgressBar behaves incorrectly when enclosed in LongListSelector
    text
    copied!<p>In my WP8 app I use Background Transfer Sevice and <code>LongListSelector</code> with <code>ProgressBar</code> as it's <code>DataTemplate</code> to display items download progress to user. The problem is that <code>ProgressBar</code> does not show real progress but keeps jumping back and forth. </p> <p>Here's my XAML. <code>LongListSelector</code> periodically recieves a list of <code>BackgroundTransferRequest</code>'s and uses <code>ProgressBar</code> to display them:</p> <pre><code>&lt;phone:LongListSelector IsGroupingEnabled="False" x:Name="Views"&gt; &lt;phone:LongListSelector.ListHeader&gt; &lt;StackPanel Style="{StaticResource M20}"&gt; &lt;controls:TextTile Txt="Cancel downloads" Sign="x" Tap="CancelDownloads" /&gt; &lt;/StackPanel&gt; &lt;/phone:LongListSelector.ListHeader&gt; &lt;phone:LongListSelector.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;ProgressBar Maximum="{Binding TotalBytesToReceive}" Value="{Binding BytesReceived}" Minimum="0" /&gt; &lt;/DataTemplate&gt; &lt;/phone:LongListSelector.ItemTemplate&gt; &lt;/phone:LongListSelector&gt; </code></pre> <p><code>LongListSelector</code> gets updated periodically from code behind class: </p> <pre><code>Views.ItemsSource = BackgroundTransferService.Requests.ToList() </code></pre> <p>This issue happens in <code>LongListSelector</code> only in case if more than one item is displayed. Everything works fine If I try to use <code>ListBox</code> for example. Why is this thing happening and what should I do to fix it?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload