<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Benjii Me</title>
	<atom:link href="http://benjii.me/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://benjii.me</link>
	<description>Web and Windows Phone 7 by Ben Cull</description>
	<lastBuildDate>Tue, 10 Apr 2012 15:29:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Continuum Transition for Windows Phone Silverlight Toolkit by Brice</title>
		<link>http://benjii.me/2011/11/continuum-transition-for-windows-phone-silverlight-toolkit/#comment-671</link>
		<dc:creator>Brice</dc:creator>
		<pubDate>Tue, 10 Apr 2012 15:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://benjii.me/2011/11/continuum-transition-for-windows-phone-silverlight-toolkit/#comment-671</guid>
		<description>@Martin, and whomever runs into the same issues.

I managed to make this run without WP7Contrib. This required some refactoring of the code and a tighter set-up of the elements that are involved in the transition.

The problem was that the UIElements involved in the Transition&#039;s Storyboard had a MatrixTransform as a RenderTransform, where the Storyboard would have expected them to have a CompositeTransform instead.

Now, the line

ContinuumElement.GetTransform(TransformCreationMode.CreateOrAddAndIgnoreMatrix);

is supposed to prevent that, but it failed and / or was not enough, because, if you peek at what the storyboard looks like, you will notice that two elements need to have a CompositeTransform :

- ContinuumElement
- LayoutRoot

So I made this code work by following those steps :

1) Remove the call to 
ContinuumElement.GetTransform(). It is a WP7Contrib method that turned out to not be sufficient and even malfunctioning for me.

I just replaced it by a check that throws an exception if any the elements involved in the transition has another kind of RenderTransform than a CompositeTransform.

But if you follow step 2, you don&#039;t need that.

2) Make sure that the transition&#039;s LayoutRoot and ContinuumElement have CompositeTransform.

To do this I just created a Style that sets the RenderTransform of a UIElement to be an empty CompositeTransform.

Since the LayoutRoot of the animation is by default the page where it is called, I applied the style to the PhoneApplicationPage that starts the transition, and to the ListBoxItems themselves.

And that did the trick.

Additionally I added to the ContinuumTransition class a dependency property called LayoutRoot. This way I specify the LayoutRoot of the animation myself and therefore I am sure which UIElement to apply the aforementioned style to.

Tricky, but it runs and works, but the performance is horrible.
Hope it helps someone.</description>
		<content:encoded><![CDATA[<p>@Martin, and whomever runs into the same issues.</p>
<p>I managed to make this run without WP7Contrib. This required some refactoring of the code and a tighter set-up of the elements that are involved in the transition.</p>
<p>The problem was that the UIElements involved in the Transition&#8217;s Storyboard had a MatrixTransform as a RenderTransform, where the Storyboard would have expected them to have a CompositeTransform instead.</p>
<p>Now, the line</p>
<p>ContinuumElement.GetTransform(TransformCreationMode.CreateOrAddAndIgnoreMatrix);</p>
<p>is supposed to prevent that, but it failed and / or was not enough, because, if you peek at what the storyboard looks like, you will notice that two elements need to have a CompositeTransform :</p>
<p>- ContinuumElement<br />
- LayoutRoot</p>
<p>So I made this code work by following those steps :</p>
<p>1) Remove the call to<br />
ContinuumElement.GetTransform(). It is a WP7Contrib method that turned out to not be sufficient and even malfunctioning for me.</p>
<p>I just replaced it by a check that throws an exception if any the elements involved in the transition has another kind of RenderTransform than a CompositeTransform.</p>
<p>But if you follow step 2, you don&#8217;t need that.</p>
<p>2) Make sure that the transition&#8217;s LayoutRoot and ContinuumElement have CompositeTransform.</p>
<p>To do this I just created a Style that sets the RenderTransform of a UIElement to be an empty CompositeTransform.</p>
<p>Since the LayoutRoot of the animation is by default the page where it is called, I applied the style to the PhoneApplicationPage that starts the transition, and to the ListBoxItems themselves.</p>
<p>And that did the trick.</p>
<p>Additionally I added to the ContinuumTransition class a dependency property called LayoutRoot. This way I specify the LayoutRoot of the animation myself and therefore I am sure which UIElement to apply the aforementioned style to.</p>
<p>Tricky, but it runs and works, but the performance is horrible.<br />
Hope it helps someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Endless Scrolling ListView in Android by Abhi</title>
		<link>http://benjii.me/2010/08/endless-scrolling-listview-in-android/#comment-670</link>
		<dc:creator>Abhi</dc:creator>
		<pubDate>Fri, 30 Mar 2012 11:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://benjii.me/2010/08/endless-scrolling-listview-in-android/#comment-670</guid>
		<description>Great Post!!!, it helps me a lot
but I am facing some issue with the code, it always executes even when I am not scrolling my list, may be because when list is loading it may scroll by itself, what should I do</description>
		<content:encoded><![CDATA[<p>Great Post!!!, it helps me a lot<br />
but I am facing some issue with the code, it always executes even when I am not scrolling my list, may be because when list is loading it may scroll by itself, what should I do</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Endless Scrolling ListView in Android by use android dynamicaly load more items to the listview need help</title>
		<link>http://benjii.me/2010/08/endless-scrolling-listview-in-android/#comment-668</link>
		<dc:creator>use android dynamicaly load more items to the listview need help</dc:creator>
		<pubDate>Thu, 22 Mar 2012 19:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://benjii.me/2010/08/endless-scrolling-listview-in-android/#comment-668</guid>
		<description>[...] i try this code http://benjii.me/2010/08/endless-scrolling-listview-in-android/ but i this error &#8220;The method setOnScrollListener(welcome.EndlessScrollListener) is undefined [...]</description>
		<content:encoded><![CDATA[<p>[...] i try this code <a href="http://benjii.me/2010/08/endless-scrolling-listview-in-android/" rel="nofollow">http://benjii.me/2010/08/endless-scrolling-listview-in-android/</a> but i this error &#8220;The method setOnScrollListener(welcome.EndlessScrollListener) is undefined [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using SMTP with WordPress and IIS by Deependra Solanky</title>
		<link>http://benjii.me/2010/03/using-smtp-with-wordpress-and-iis/#comment-666</link>
		<dc:creator>Deependra Solanky</dc:creator>
		<pubDate>Tue, 13 Mar 2012 17:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://benjii.me/2010/03/using-smtp-with-wordpress-and-iis/#comment-666</guid>
		<description>Thanks, it worked like a charm. Now I am able to use contact form 7.</description>
		<content:encoded><![CDATA[<p>Thanks, it worked like a charm. Now I am able to use contact form 7.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is Gadgeteer? &#8211; Getting Started by Doug Rathbone</title>
		<link>http://benjii.me/2012/02/what-is-gadgeteer-getting-started/#comment-665</link>
		<dc:creator>Doug Rathbone</dc:creator>
		<pubDate>Tue, 13 Mar 2012 10:47:52 +0000</pubDate>
		<guid isPermaLink="false">http://benjii.me/?p=362#comment-665</guid>
		<description>Mate this is awesome - I&#039;ve been stuffing around with Netduino for about 6 months and you&#039;ll love every minute.

Great minds must think alike as I&#039;ve been writing a similar post - i look forward to future posts on your embedded adventure champ.</description>
		<content:encoded><![CDATA[<p>Mate this is awesome &#8211; I&#8217;ve been stuffing around with Netduino for about 6 months and you&#8217;ll love every minute.</p>
<p>Great minds must think alike as I&#8217;ve been writing a similar post &#8211; i look forward to future posts on your embedded adventure champ.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Use the Long List Selector for Windows Phone Mango by etnad</title>
		<link>http://benjii.me/2011/10/how-to-use-the-long-list-selector-for-windows-phone-mango/#comment-664</link>
		<dc:creator>etnad</dc:creator>
		<pubDate>Sun, 04 Mar 2012 19:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://benjii.me/2011/10/how-to-use-the-long-list-selector-for-windows-phone-mango/#comment-664</guid>
		<description>Thank you for your explanation on how the LLS works. I&#039;m an extreme noob and I&#039;m having some issues. Do you have a sample of this for download so that I can pick it apart and find out what I&#039;m messing up? Thanks.</description>
		<content:encoded><![CDATA[<p>Thank you for your explanation on how the LLS works. I&#8217;m an extreme noob and I&#8217;m having some issues. Do you have a sample of this for download so that I can pick it apart and find out what I&#8217;m messing up? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Credit Card Validator Attribute for ASP.NET MVC 3 by bill</title>
		<link>http://benjii.me/2010/11/credit-card-validator-attribute-for-asp-net-mvc-3/#comment-663</link>
		<dc:creator>bill</dc:creator>
		<pubDate>Fri, 02 Mar 2012 17:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://benjii.me/?p=111#comment-663</guid>
		<description>Awesome.  Thanks very much for this.  I updated it a bit to include discover cards in the US, but other than that, it&#039;s really great.</description>
		<content:encoded><![CDATA[<p>Awesome.  Thanks very much for this.  I updated it a bit to include discover cards in the US, but other than that, it&#8217;s really great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQax jQuery plugin – The jQuery plugin version of the jQax ajax wrapper by Luke W</title>
		<link>http://benjii.me/2010/08/jqax-jquery-plugin-the-jquery-plugin-version-of-the-jqax-ajax-wrapper/#comment-662</link>
		<dc:creator>Luke W</dc:creator>
		<pubDate>Thu, 01 Mar 2012 08:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://benjii.me/2010/08/jqax-jquery-plugin-the-jquery-plugin-version-of-the-jqax-ajax-wrapper/#comment-662</guid>
		<description>Well at least this is documented _somewhere_! :)</description>
		<content:encoded><![CDATA[<p>Well at least this is documented _somewhere_! <img src='http://benjii.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Endless Scrolling ListView in Android by Felipe Marques</title>
		<link>http://benjii.me/2010/08/endless-scrolling-listview-in-android/#comment-655</link>
		<dc:creator>Felipe Marques</dc:creator>
		<pubDate>Fri, 03 Feb 2012 13:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://benjii.me/2010/08/endless-scrolling-listview-in-android/#comment-655</guid>
		<description>Nice Job!! Great Post!! I make a small update:

import android.os.AsyncTask;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;

public class EndlessScrollListener implements OnScrollListener {

	private int visibleThreshold = 5;
	private int currentPage = 0;
	private int previousTotal = 0;
	private boolean loading = true;
	private AsyncTask asyncTask;

	public EndlessScrollListener(AsyncTask task) {
		this.asyncTask = task;
	}

	public EndlessScrollListener(int visibleThreshold) {
		this.visibleThreshold = visibleThreshold;
	}

	public void onScroll(AbsListView view, int firstVisibleItem,
			int visibleItemCount, int totalItemCount) {
		if (loading) {
			if (totalItemCount &gt; previousTotal) {
				loading = false;
				previousTotal = totalItemCount;
				currentPage++;
			}
		}
		if (!loading &amp;&amp; (totalItemCount - visibleItemCount) &lt;= (firstVisibleItem + visibleThreshold)) {
			// I load the next page of gigs using a background task,
			// but you can call any function here.
			asyncTask.execute(currentPage + 1);
			loading = true;
		}
	}

	public void onScrollStateChanged(AbsListView view, int scrollState) {
	}
}


this way we can make this class more generic and can use it for other variaves Activitys.

Att. Felipe</description>
		<content:encoded><![CDATA[<p>Nice Job!! Great Post!! I make a small update:</p>
<p>import android.os.AsyncTask;<br />
import android.widget.AbsListView;<br />
import android.widget.AbsListView.OnScrollListener;</p>
<p>public class EndlessScrollListener implements OnScrollListener {</p>
<p>	private int visibleThreshold = 5;<br />
	private int currentPage = 0;<br />
	private int previousTotal = 0;<br />
	private boolean loading = true;<br />
	private AsyncTask asyncTask;</p>
<p>	public EndlessScrollListener(AsyncTask task) {<br />
		this.asyncTask = task;<br />
	}</p>
<p>	public EndlessScrollListener(int visibleThreshold) {<br />
		this.visibleThreshold = visibleThreshold;<br />
	}</p>
<p>	public void onScroll(AbsListView view, int firstVisibleItem,<br />
			int visibleItemCount, int totalItemCount) {<br />
		if (loading) {<br />
			if (totalItemCount &gt; previousTotal) {<br />
				loading = false;<br />
				previousTotal = totalItemCount;<br />
				currentPage++;<br />
			}<br />
		}<br />
		if (!loading &amp;&amp; (totalItemCount &#8211; visibleItemCount) &lt;= (firstVisibleItem + visibleThreshold)) {<br />
			// I load the next page of gigs using a background task,<br />
			// but you can call any function here.<br />
			asyncTask.execute(currentPage + 1);<br />
			loading = true;<br />
		}<br />
	}</p>
<p>	public void onScrollStateChanged(AbsListView view, int scrollState) {<br />
	}<br />
}</p>
<p>this way we can make this class more generic and can use it for other variaves Activitys.</p>
<p>Att. Felipe</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using Multiple Application Bars in Windows Phone Development by mike</title>
		<link>http://benjii.me/2011/12/using-multiple-application-bars-in-windows-phone-development/#comment-652</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Mon, 23 Jan 2012 16:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://benjii.me/2011/12/using-multiple-application-bars-in-windows-phone-development/#comment-652</guid>
		<description>hi thx for your answer

i tried this, but how do i switch between the bars?
i touched the dots which i normally use for showing menu items but nothing appears/ switches

rgds,mike</description>
		<content:encoded><![CDATA[<p>hi thx for your answer</p>
<p>i tried this, but how do i switch between the bars?<br />
i touched the dots which i normally use for showing menu items but nothing appears/ switches</p>
<p>rgds,mike</p>
]]></content:encoded>
	</item>
</channel>
</rss>

