<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Damian&#039;s Blog</title>
	<atom:link href="http://damianblog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://damianblog.com</link>
	<description>.NET from Geneva, Switzerland</description>
	<lastBuildDate>Mon, 09 Apr 2012 23:45:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>New App: Chrync &#8211; syncs Chrome bookmarks and more to Windows Phone</title>
		<link>http://damianblog.com/2012/03/24/chrync/</link>
		<comments>http://damianblog.com/2012/03/24/chrync/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 17:43:14 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://damianblog.com/?p=429</guid>
		<description><![CDATA[Chrync syncs your Chrome bookmarks, recently viewed pages and open tabs down to your Windows Phone. Click here for a short video of it in action. You don’t have to install any special Chrome add-in for it to work, and the only servers Chrync talks to are Google’s own servers, to authenticate and then to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.youtube.com/watch_popup?v=zIKjSAfrANk&amp;hd=1"><img style="background-image: none; margin: 12px 0px 0px 12px; padding-left: 0px; padding-right: 0px; display: inline; float: right; padding-top: 0px; border-width: 0px;" title="image" src="http://damianblog.com/wp-content/uploads/2012/03/image1.png" alt="image" width="225" height="424" align="right" border="0" /></a>Chrync syncs your Chrome bookmarks, recently viewed pages and open tabs down to your Windows Phone.</p>
<p>Click <a href="http://www.youtube.com/watch_popup?v=zIKjSAfrANk&amp;hd=1" target="_blank">here</a> for a short video of it in action.</p>
<p>You don’t have to install any special Chrome add-in for it to work, and the only servers Chrync talks to are Google’s own servers, to authenticate and then to sync.</p>
<p>The way I’ve implemented Chrync is that it talks to Google’s servers using the <strong>native Chrome sync protocol</strong>, exactly like Chrome itself does.</p>
<p>I’m charging US$0.99, but there is an unlimited trial – I’m fine for people to use it on a trial basis for as long as they want … The app is available from the marketplace <a href="http://www.windowsphone.com/en-US/apps/cf88cf1c-db73-4db4-8612-758f23c31067" target="_blank">here</a>.</p>
<p>Give it a go and let me know what you think at this <a href="http://chrync.uservoice.com/forums/152790-general" target="_blank">User Voice site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://damianblog.com/2012/03/24/chrync/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Nokia showcasing Evernote for Windows Phone</title>
		<link>http://damianblog.com/2012/02/09/nokia-videos/</link>
		<comments>http://damianblog.com/2012/02/09/nokia-videos/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 15:29:08 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://damianblog.com/?p=416</guid>
		<description><![CDATA[I'll not be giving up my day job, but it was fun doing these interviews ...]]></description>
			<content:encoded><![CDATA[<p>I'll not be giving up my day job, but it was fun doing these interviews ...</p>
<p><span style="text-align:center; display: block;"><a href="http://damianblog.com/2012/02/09/nokia-videos/"><img src="http://img.youtube.com/vi/Ro2N0AdlqqI/2.jpg" alt="" /></a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://damianblog.com/2012/02/09/nokia-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evernote 2.0 for Windows Phone 7.5 (Mango) released</title>
		<link>http://damianblog.com/2011/09/24/evernote-20-released/</link>
		<comments>http://damianblog.com/2011/09/24/evernote-20-released/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 13:39:12 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[Evernote]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://damianblog.com/?p=410</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="420" height="315"><param name="movie" value="http://www.youtube.com/v/DvKcK5Or1LM?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DvKcK5Or1LM?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://damianblog.com/2011/09/24/evernote-20-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentation at the Evernote Trunk Conference on developing the Evernote Windows Phone client</title>
		<link>http://damianblog.com/2011/09/23/etc-presentation/</link>
		<comments>http://damianblog.com/2011/09/23/etc-presentation/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 14:38:13 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[Evernote]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://damianblog.com/?p=399</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="320"><param name="movie" value="http://www.youtube.com/v/_viLV4nzOWw?version=3&amp;hl=en_US&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/_viLV4nzOWw?version=3&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" width="640" height="320" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://damianblog.com/2011/09/23/etc-presentation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Elephants love mangoes – a look behind our Windows Phone 7 client</title>
		<link>http://damianblog.com/2011/08/02/evernote-wp7/</link>
		<comments>http://damianblog.com/2011/08/02/evernote-wp7/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 07:42:07 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://damianblog.com/?p=395</guid>
		<description><![CDATA[I wrote this article for the Evernote Tech Blog last month, summarizing my experience developing the Windows Phone Evernote client: http://blog.evernote.com/tech/2011/06/28/look-behind-evernote-wp7/]]></description>
			<content:encoded><![CDATA[<p>I wrote this article for the Evernote Tech Blog last month, summarizing my experience developing the Windows Phone Evernote client: <a href="http://blog.evernote.com/tech/2011/06/28/look-behind-evernote-wp7/">http://blog.evernote.com/tech/2011/06/28/look-behind-evernote-wp7/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://damianblog.com/2011/08/02/evernote-wp7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HTC Gingerbread&#8211;automatically switching from Wifi  to costly data connection</title>
		<link>http://damianblog.com/2011/05/30/htc-gingerbreadautomatically-switching-from-wifi-to-costly-data-connection/</link>
		<comments>http://damianblog.com/2011/05/30/htc-gingerbreadautomatically-switching-from-wifi-to-costly-data-connection/#comments</comments>
		<pubDate>Mon, 30 May 2011 14:17:23 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://damianblog.com/2011/05/30/htc-gingerbreadautomatically-switching-from-wifi-to-costly-data-connection/</guid>
		<description><![CDATA[I have an HTC Incredible S, and it’s a very nice phone indeed. I recently upgraded Android 2.3.3 (Gingerbread), and discovered that the Wifi connection was dropping in places at home where it had a perfectly usable (albeit weak) Wifi signal.&#160; Places where previously it had worked. I fiddled with my Wifi base station, repositioning [...]]]></description>
			<content:encoded><![CDATA[<p>I have an <a href="http://www.htc.com/www/product/incredibles/overview.html">HTC Incredible S</a>, and it’s a very nice phone indeed.</p>
<p>I recently upgraded <a href="http://developer.android.com/sdk/android-2.3-highlights.html">Android 2.3.3</a> (Gingerbread), and discovered that the Wifi connection was dropping in places at home where it had a perfectly usable (albeit weak) Wifi signal.&#160; Places where previously it had worked.</p>
<p>I fiddled with my Wifi base station, repositioning it, to no avail.</p>
<p>Finally I googled and found that <a href="http://forum.xda-developers.com/archive/index.php/t-1058450.html">HTC had decided to switch from Wifi to data if the Wifi signal dropped below a certain strength (88dbm)</a>.&#160; How nice of them to decide on my behalf that I wanted to switch from my (free) Wifi to my (expensive) data plan, even though I still had a perfectly usable (and free) Wifi connection – one that worked perfectly well in the previous OS version.</p>
<p>This is annoying for a couple of reasons.&#160; Firstly I can now run up horrendous data plan charges even though I’m within range of my Wifi.&#160; Secondly, I have services I run on my local Wifi (IP Cams, remote control software) that can no longer connect when I’m off my Wifi.</p>
<p>I’ve been a big HTC fan for a long time, and have gone through many of their ‘phones.&#160; This is a big disappointment for me – it stinks of paternalism/arrogance – deciding what is best for me without giving me a chance to override it.&#160; I am sure that it isn’t arrogance/paternalism – I am sure it made perfectly good engineering sense, perhaps because less battery will be consumed on data than on Wifi when on a weak link, but <strong>give me a choice</strong>.</p>
<p>I contacted HTC support and was told that yes, this behavior is new and that no, there was no way to downgrade – the suggestion was to switch off the Data connection when I was at home. Right, as if I will remember to do that.</p>
<p>I’ve ended up installing <a href="http://tasker.dinglisch.net/">Tasker</a>, and setting up a rule to switch off my Data connection when within range of my home Wifi.&#160; Not ideal, but it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://damianblog.com/2011/05/30/htc-gingerbreadautomatically-switching-from-wifi-to-costly-data-connection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to: Windows 7 incoming VPN from Android</title>
		<link>http://damianblog.com/2011/05/26/android-vpn-to-windows7/</link>
		<comments>http://damianblog.com/2011/05/26/android-vpn-to-windows7/#comments</comments>
		<pubDate>Thu, 26 May 2011 17:37:42 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://damianblog.com/2011/05/26/android-vpn-to-windows7/</guid>
		<description><![CDATA[A couple of weeks ago I tried to get my HTC Incredible S, running Gingerbread to connect via VPN to my Windows 7 box.&#160; I failed, but today I succeeded.&#160; This is how. I created the incoming VPN on Windows 7 by following instructions I found on the web: Open the Network and Sharing Center [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of weeks ago I tried to get my HTC Incredible S, running Gingerbread to connect via VPN to my Windows 7 box.&#160; I failed, but today I succeeded.&#160; This is how.</p>
<p>I created the incoming VPN on Windows 7 by following instructions I found on the web:</p>
<h5>Open the Network and Sharing Center</h5>
<p><a href="http://damianblog.com/wp-content/uploads/2011/05/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://damianblog.com/wp-content/uploads/2011/05/image_thumb.png" width="244" height="150" /></a></p>
<h5>Click on Change Adapter Settings</h5>
<p><a href="http://damianblog.com/wp-content/uploads/2011/05/image1.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://damianblog.com/wp-content/uploads/2011/05/image_thumb1.png" width="197" height="214" /></a></p>
<h5>Press Alt-F, and select New Incoming Connection</h5>
<p><a href="http://damianblog.com/wp-content/uploads/2011/05/image2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://damianblog.com/wp-content/uploads/2011/05/image_thumb2.png" width="181" height="244" /></a></p>
<h5>Configure the incoming connection</h5>
<p><a href="http://damianblog.com/wp-content/uploads/2011/05/image3.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://damianblog.com/wp-content/uploads/2011/05/image_thumb3.png" width="244" height="180" /></a><a href="http://damianblog.com/wp-content/uploads/2011/05/image4.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://damianblog.com/wp-content/uploads/2011/05/image_thumb4.png" width="244" height="180" /></a><a href="http://damianblog.com/wp-content/uploads/2011/05/image5.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://damianblog.com/wp-content/uploads/2011/05/image_thumb5.png" width="244" height="180" /></a></p>
<h5>Change the IPV4 properties to specify a DHCP range</h5>
<p>Make sure the range you specify is on your LAN, and out of the range served by your DHCP server (you can updated your DHCP server to exclude this range).</p>
<p><a href="http://damianblog.com/wp-content/uploads/2011/05/image6.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://damianblog.com/wp-content/uploads/2011/05/image_thumb6.png" width="416" height="330" /></a></p>
<h5>Check the firewall</h5>
<p>I went to Advanced Settings under Windows Firewall, clicked on Inbound Rules, clicked on the Local Port column to sort by that column, and then verified that the line for port 1723 was set up and enabled (Routing and Remote Access (PPTP-In).</p>
<p><a href="http://damianblog.com/wp-content/uploads/2011/05/image7.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://damianblog.com/wp-content/uploads/2011/05/image_thumb7.png" width="556" height="98" /></a></p>
<h5>Set up port forwarding</h5>
<p>I then went to my Router configuration, and set up port forwarding, so that external connections to port 1723 were forwarded to the machine I just configured (which is always allocated the same IP address by the router):</p>
<p><a href="http://damianblog.com/wp-content/uploads/2011/05/image8.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://damianblog.com/wp-content/uploads/2011/05/image_thumb8.png" width="561" height="365" /></a></p>
<p>Now my Android device can connect to my internal VPN using the default settings.&#160; You’ll need to know your external IP address.&#160; You can find it using tools like <a href="http://www.whatismyip.com/">http://www.whatismyip.com/</a> but it may change.&#160; I have mine set up using <a href="http://www.dyndns.com/">http://www.dyndns.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://damianblog.com/2011/05/26/android-vpn-to-windows7/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>GoBackAction&#8211;a Windows Phone Behavior to navigate back</title>
		<link>http://damianblog.com/2011/04/11/gobackaction/</link>
		<comments>http://damianblog.com/2011/04/11/gobackaction/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 09:37:09 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://damianblog.com/2011/04/11/gobackaction/</guid>
		<description><![CDATA[Behaviors are a great way to encapsulate functionality that can be used in a drag-and-drop environment such as Expression Blend. Out of the box you get a NavigateToPageAction, but I couldn’t see an easy way to navigate backwards to the previous page using any of the built-in behaviors.&#160; I wanted to let the user click [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://expression.microsoft.com/en-us/library/ff979326(Expression.40).aspx">Behaviors</a> are a great way to encapsulate functionality that can be used in a drag-and-drop environment such as Expression Blend.</p>
<p>Out of the box you get a <a href="http://expression.microsoft.com/en-us/library/ff979325(Expression.40).aspx">NavigateToPageAction</a>, but I couldn’t see an easy way to navigate backwards to the previous page using any of the built-in behaviors.&#160; I wanted to let the user click on an item in a list, and then have the Phone automatically navigate to the previous page.</p>
<p>So here it is, the world’s simplest behavior:</p>
<p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:e7358a70-34fe-4a5e-98e8-5a8b7d625dac" class="wlWriterEditableSmartContent">
<div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt">
<div style="background-color: #ffffff; overflow: auto; padding: 2px 5px;">[<span style="color:#00008b">DefaultTrigger</span>(<span style="color:#0000ff">typeof</span> (<span style="color:#00008b">ButtonBase</span>), <span style="color:#0000ff">typeof</span> (<span style="color:#00008b">System</span>.<span style="color:#00008b">Windows</span>.<span style="color:#00008b">Interactivity</span>.<span style="color:#00008b">EventTrigger</span>), <span style="color:#a31515">&quot;Click&quot;</span>)]<br /> [<span style="color:#00008b">DefaultTrigger</span>(<span style="color:#0000ff">typeof</span> (<span style="color:#00008b">UIElement</span>), <span style="color:#0000ff">typeof</span> (<span style="color:#00008b">System</span>.<span style="color:#00008b">Windows</span>.<span style="color:#00008b">Interactivity</span>.<span style="color:#00008b">EventTrigger</span>), <span style="color:#a31515">&quot;MouseLeftButtonDown&quot;</span>)]<br /> <span style="color:#0000ff">public</span> <span style="color:#0000ff">class</span> <span style="color:#00008b">GoBackAction</span> : <span style="color:#00008b">TriggerAction</span>&lt;<span style="color:#00008b">FrameworkElement</span>&gt;<br /> {<br />     <span style="color:#0000ff">protected</span> <span style="color:#0000ff">override</span> <span style="color:#0000ff">void</span> <span style="color:#008b8b">Invoke</span>(<span style="color:#0000ff">object</span> parameter)<br />     {<br />         <span style="color:#0000ff">var</span> rootFrame = <span style="color:#00008b">Application</span>.<span style="color:#800080">Current</span>.<span style="color:#800080">RootVisual</span> <span style="color:#0000ff">as</span> <span style="color:#00008b">PhoneApplicationFrame</span>;<br />         <span style="color:#0000ff">if</span>(rootFrame !=<span style="color:#0000ff">null</span>)<br />         {<br />             rootFrame.<span style="color:#008b8b">GoBack</span>();<br />         }<br />     }<br /> }</div>
</p></div>
</p></div>
<p> Once you’ve built this class in your project, if you open your project in Expression Blend you should see the GoBackAction listed in the Behaviors section of the Assets tab.&#160; You can then drag the behavior onto a UI element, define the event that should trigger the action, and then when the event occurs you should be automatically navigated backwards.</p>
]]></content:encoded>
			<wfw:commentRss>http://damianblog.com/2011/04/11/gobackaction/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adapting Fluid List Animation to work with the LongListSelector</title>
		<link>http://damianblog.com/2011/04/04/fluidlonglistselector/</link>
		<comments>http://damianblog.com/2011/04/04/fluidlonglistselector/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 09:33:06 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://damianblog.com/2011/04/04/fluidlonglistselector/</guid>
		<description><![CDATA[Colin Eberhardt at ScottLogic has been doing some excellent work showing how we can make our own UIs animate in a fluid manner similar to the built in Microsoft UIs on Windows Phone. His Fluid List Animation is particularly neat, and I thought I’d apply it to the UI I’m developing, specifically on a couple [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.scottlogic.co.uk/blog/colin/">Colin Eberhardt</a> at <a href="http://www.scottlogic.co.uk/">ScottLogic</a> has been doing some excellent work showing how we can make our own UIs animate in a fluid manner similar to the built in Microsoft UIs on Windows Phone.</p>
<p>His <a href="http://www.scottlogic.co.uk/blog/colin/2011/03/metro-in-motion-fluid-list-animation/">Fluid List Animation</a> is particularly neat, and I thought I’d apply it to the UI I’m developing, specifically on a couple of <a href="http://www.windowsphonegeek.com/articles/wp7-longlistselector-in-depth--part1-visual-structure-and-api">LongListSelectors</a> that I embed in Pivots.</p>
<p>Unfortunately his code didn’t work on the LongListSelector out of the box because although Colin went out of his way to make it work with any ItemsControl, the LongListSelector is not an ItemsControl.&#160; Fortunately his code was well commented, and it was trivial to modify it to work with the LongListSelector.</p>
<p>All the changes are in the OnIsPivotAnimatedChanged method in the ListAnimation class.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:3e5fd280-1a4e-4af4-91a5-7e406fc8d1df" class="wlWriterEditableSmartContent">
<div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt">
<div style="background-color: #ffffff; overflow: auto; padding: 2px 5px;"><span style="color:#0000ff">private</span> <span style="color:#0000ff">static</span> <span style="color:#0000ff">void</span> <span style="color:#008b8b">OnIsPivotAnimatedChanged</span>(<span style="color:#00008b">DependencyObject</span> d, <span style="color:#00008b">DependencyPropertyChangedEventArgs</span> args)<br /> {<br /> <span style="color:#008000">//  ItemsControl list = d as ItemsControl;</span><br />     <span style="color:#00008b">LongListSelector</span> list = d <span style="color:#0000ff">as</span> <span style="color:#00008b">LongListSelector</span>;</div>
</p></div>
</p></div>
<p>Next find the section that starts with the comment “locate the stack panel that hosts the items” and replace the code that follows it (up to and including the for loop) with:</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:88d9aae0-2b03-4920-adc1-815f4a456398" class="wlWriterEditableSmartContent">
<div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt">
<div style="background-color: #ffffff; overflow: auto; padding: 2px 5px;"><span style="color:#0000ff">var</span> itemsInView = list.<span style="color:#008b8b">GetItemsWithContainers</span>(<span style="color:#0000ff">true</span>, <span style="color:#0000ff">true</span>);</p>
<p> <span style="color:#0000ff">foreach</span> (<span style="color:#00008b">ContentPresenter</span> item <span style="color:#0000ff">in</span> itemsInView)<br /> {<br />     <span style="color:#0000ff">var</span> localItem = item;<br />     list.<span style="color:#800080">Dispatcher</span>.<span style="color:#008b8b">BeginInvoke</span>(() =&gt;<br />     {<br />         <span style="color:#0000ff">var</span> animationTargets = localItem.<span style="color:#008b8b">Descendants</span>().<span style="color:#008b8b">Where</span>(p =&gt; <span style="color:#008b8b">GetAnimationLevel</span>(p) &gt; -1);<br />         <span style="color:#0000ff">foreach</span> (<span style="color:#00008b">FrameworkElement</span> target <span style="color:#0000ff">in</span> animationTargets)<br />         {<br />             <span style="color:#008000">// trigger the required animation</span><br />             <span style="color:#008b8b">GetAnimation</span>(target, fromRight).<span style="color:#008b8b">Begin</span>();<br />         }<br />     });<br /> }</div>
</p></div>
</p></div>
<p>The key is the call to GetItemsWithContainers – the first parameter indicates we only want items that are in view, and the second indicates we want the containers (hence the ContentPresenter type in the foreach).</p>
<p>That’s it – Colin did all the hard work – I just adapted it – all kudos to him.</p>
]]></content:encoded>
			<wfw:commentRss>http://damianblog.com/2011/04/04/fluidlonglistselector/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>So you think you&#8217;ve finished implementing that new Windows Phone 7 page?</title>
		<link>http://damianblog.com/2011/03/25/windows-phone-7-page-checklist/</link>
		<comments>http://damianblog.com/2011/03/25/windows-phone-7-page-checklist/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 00:31:38 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://damianblog.com/2011/03/25/windows-phone-7-page-checklist/</guid>
		<description><![CDATA[So you think you’ve finished implementing that new Windows Phone 7 page? Have you checked that you: are using resources for all user-visible strings? have made sure the page handles rotation properly? handle the Enter key on each TextBox to move to the next TextBox, or submit the page? have set the InputScope on each [...]]]></description>
			<content:encoded><![CDATA[<p>So you think you’ve finished implementing that new Windows Phone 7 page?</p>
<p>Have you checked that you:</p>
<ol>
<li>are using <a href="http://msdn.microsoft.com/en-us/library/ff637520(v=vs.92).aspx">resources</a> for all user-visible strings? </li>
<li>have made sure the page <a href="http://mobileworld.appamundi.com/blogs/andywigley/archive/2010/11/23/windows-phone-7-page-orientation-change-animations.aspx">handles rotation</a> properly? </li>
<li>handle the <a href="http://stackoverflow.com/questions/3295057/determining-the-enter-key-is-pressed-in-a-textbox-in-win-phone-7">Enter key</a> on each TextBox to move to the next TextBox, or submit the page?</li>
<li>have set the <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.textbox.inputscope(v=vs.95).aspx">InputScope</a> on each TextBox? </li>
<li>handle <a href="http://msdn.microsoft.com/en-us/library/ff967548(v=VS.92).aspx">tombstoning</a> properly? </li>
<li>have set up <a href="http://blogs.msdn.com/b/wfaught/archive/2010/11/15/transitions.aspx">Navigation transitions</a>? </li>
<li>have tested with both the Light and Dark <a href="http://msdn.microsoft.com/en-us/library/ff402557(v=VS.92).aspx">Themes</a>? </li>
<li>are using the <a href="http://msdn.microsoft.com/en-us/library/ff769552(v=vs.92).aspx">built-in resources</a> for text styles? </li>
<li><a href="http://blog.toetapz.com/2010/11/17/handling-the-back-button-with-a-popup-open-on-windows-phone-7/">override the Back button</a> press if you are displaying popups?</li>
</ol>
<p>What have I missed?</p>
]]></content:encoded>
			<wfw:commentRss>http://damianblog.com/2011/03/25/windows-phone-7-page-checklist/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

