<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
		<title>gdp's Comments</title>
		<language>en-us</language>
		<link>https://www.intensedebate.com/users/955194</link>
		<description>Comments by superyeti420</description>
<item>
<title>Simon says : Simon say&#039;s MonoTouch scrolling like iPhone home screen in C#</title>
<link>http://simon.nureality.ca/simon-says-monotouch-scrolling-like-iphone-home-screen-in-c/#IDComment66183896</link>
<description>Hi Guys, great example. I made a small change to the button code, if you were pressing the buttons really quickly you could get the event to fire more than once at the last page.  it was being calculated based on the current offset which caused issues, i changed it to use the page# * page width to get the correct display all the time.  Include this code in the FinishedLoading method.  pageControl.ValueChanged += delegate(object sender, EventArgs e) { var pc = (UIPageControl)sender; double fromPage = Math.Floor((scrollView.ContentOffset.X - scrollView.Frame.Width / 2) / scrollView.Frame.Width) + 1; var toPage = pc.CurrentPage; var pageOffset = scrollView.Frame.Width*toPage; Console.WriteLine(&amp;quot;fromPage &amp;quot; + fromPage + &amp;quot; toPage &amp;quot; + toPage); PointF p = new PointF(pageOffset, 0); scrollView.SetContentOffset(p,true); }; </description>
<pubDate>Tue, 6 Apr 2010 08:28:01 +0000</pubDate>
<guid>http://simon.nureality.ca/simon-says-monotouch-scrolling-like-iphone-home-screen-in-c/#IDComment66183896</guid>
</item>	</channel>
</rss>