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