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

Closed Issue: WP7: LoopingSelector Brake and AnimatePanel functions [8706]

$
0
0
<p>The current implementation of the Brake and AnimatePanel functions in LoopiongSelector.cs has the following line of code:</p>
<p>&nbsp;</p>
<p>Duration duration = new Duration(TimeSpan.FromMilliseconds(_panelAnimation.Duration.TimeSpan.Milliseconds * factor));</p>
<p>&nbsp;</p>
<p>which throws an exception when scrolling too fast through a large list of items.</p>
<p>&nbsp;</p>
<p>My suggestion is to replace this line as follows:</p>
<p>&nbsp;</p>
<p>Duration duration = new Duration();</p>
<p>duration = factor &lt;= 1 &amp;&amp; factor &gt;= 0 &amp;&amp; duration.HasTimeSpan ? new Duration(TimeSpan.FromMilliseconds(duration.TimeSpan.Milliseconds * factor)) : _panDuration;</p>

Comments:

Closing all issues marked as fixed, dupe or no repro for the Windows Phone Toolkit September 2012 release.


Viewing all articles
Browse latest Browse all 801

Trending Articles



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