<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Life, code and everything &#187; SilverLight</title>
	<atom:link href="http://blog.elgaard.com/category/silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.elgaard.com</link>
	<description>On life, universe and software development with focus on simplicity, quality and maintainability</description>
	<lastBuildDate>Fri, 07 Oct 2011 14:56:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.elgaard.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Life, code and everything &#187; SilverLight</title>
		<link>http://blog.elgaard.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.elgaard.com/osd.xml" title="Life, code and everything" />
	<atom:link rel='hub' href='http://blog.elgaard.com/?pushpress=hub'/>
		<item>
		<title>Setting the Windows Phone 7 SMTP Port</title>
		<link>http://blog.elgaard.com/2011/01/01/setting-the-windows-phone-7-smtp-port/</link>
		<comments>http://blog.elgaard.com/2011/01/01/setting-the-windows-phone-7-smtp-port/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 13:12:00 +0000</pubDate>
		<dc:creator>Brian Elgaard</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[SilverLight]]></category>

		<guid isPermaLink="false">https://belgaard.wordpress.com/2011/01/01/setting-the-windows-phone-7-smtp-port/</guid>
		<description><![CDATA[I am now the happy owner of a Windows Phone 7 device, Samsung’s Omnia 7. I am a happy user of Samsung’s hardware as well as Microsoft’s software, including the new Metro user interface, My Phone’s ability to locate my &#8230; <a href="http://blog.elgaard.com/2011/01/01/setting-the-windows-phone-7-smtp-port/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.elgaard.com&amp;blog=9204421&amp;post=44&amp;subd=belgaard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am now the happy owner of a Windows Phone 7 device, Samsung’s Omnia 7.</p>
<p>I am a happy user of Samsung’s hardware as well as Microsoft’s software, including the new Metro user interface, My Phone’s ability to locate my phone, the Zune software etc. And I am thrilled about the developer story – that apps can be developed using Silverlight and C# with Visual Studio and other familiar tools.</p>
<p>I intend to blog about developing apps as soon as I get proper hands-on experience.</p>
<p>One end-user problem struck me immediately when I tried to setup the phone. I use a hosted email solution which I can use to read my email through POP3/IMAP and I can send email through SMTP, all of which WP7 supports nicely.</p>
<p>Well, except that there seems to be no way to specify the SMTP port to be used, which is odd since it is quite common to have the default port 25 blocked?</p>
<p>As usual, there is a simple solution to this problem – simply specify the port after the SMTP server name. For example, if the server name is ‘myServer.com’ and the port to use is 42, specify this as ‘myServer.com:42:0’.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/belgaard.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/belgaard.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/belgaard.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/belgaard.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/belgaard.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/belgaard.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/belgaard.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/belgaard.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/belgaard.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/belgaard.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/belgaard.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/belgaard.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/belgaard.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/belgaard.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.elgaard.com&amp;blog=9204421&amp;post=44&amp;subd=belgaard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.elgaard.com/2011/01/01/setting-the-windows-phone-7-smtp-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da973d0ef671850a3376f87377168f3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">belgaard</media:title>
		</media:content>
	</item>
		<item>
		<title>The Silverlight 3 SelectedIndex bug</title>
		<link>http://blog.elgaard.com/2010/01/05/the-silverlight-3-selectedindex-bug/</link>
		<comments>http://blog.elgaard.com/2010/01/05/the-silverlight-3-selectedindex-bug/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 19:17:06 +0000</pubDate>
		<dc:creator>Brian Elgaard</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[SilverLight]]></category>

		<guid isPermaLink="false">http://belgaard.wordpress.com/2010/01/05/the-silverlight-3-selectedindex-bug/</guid>
		<description><![CDATA[There is a Silverlight bug which bothers a lot of users worldwide – if you bing the issue you will find quite a few hits. The Problem The problem is simple to state. Create a combo box and bind to &#8230; <a href="http://blog.elgaard.com/2010/01/05/the-silverlight-3-selectedindex-bug/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.elgaard.com&amp;blog=9204421&amp;post=36&amp;subd=belgaard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is a Silverlight bug which bothers a lot of users worldwide – if you bing the issue you will find quite a few hits.</p>
<h4>The Problem</h4>
<p>The problem is simple to state. Create a combo box and bind to the SelectedIndex and ItemsSource properties and you get an out of bounds error when a value is selected.</p>
<pre class="code"><span style="color:blue;">&lt;</span><span style="color:#a31515;">ComboBox </span><span style="color:red;">SelectedIndex</span><span style="color:blue;">="{</span><span style="color:#a31515;">Binding </span><span style="color:red;">Path</span><span style="color:blue;">=IndexOfCurrentValue}" </span><span style="color:red;">ItemsSource</span><span style="color:blue;">="{</span><span style="color:#a31515;">Binding </span><span style="color:red;">Values</span><span style="color:blue;">}"</span><span style="color:blue;">&gt;</span></pre>
<p>One of the sources that describe the problem is <a href="http://www.lhotka.net/weblog/SilverlightComboBoxControlAndDataBinding.aspx">http://www.lhotka.net/weblog/SilverlightComboBoxControlAndDataBinding.aspx</a>. This post includes a work around but I wanted to find a simpler solution.</p>
<p>I asked the Silverlight product team and the answer was that this bug is very unfortunate, but that it may not be trivial to fix.</p>
<p>In my repro project, I bound SelectedIndex before binding ItemsSource, so when the binding engine sets the SelectedIndex property, items are not set yet and the value 0 is not correct.</p>
<h4>The Solution</h4>
<p>The workaround is simple; simply switch the order of bindings in XAML and bind ItemsSource before binding SelectedIndex.</p>
<p>This is a reported bug and it is still open at the time of writing this. I hope it will be fixed by Silverlight 4.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/belgaard.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/belgaard.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/belgaard.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/belgaard.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/belgaard.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/belgaard.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/belgaard.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/belgaard.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/belgaard.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/belgaard.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/belgaard.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/belgaard.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/belgaard.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/belgaard.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.elgaard.com&amp;blog=9204421&amp;post=36&amp;subd=belgaard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.elgaard.com/2010/01/05/the-silverlight-3-selectedindex-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/da973d0ef671850a3376f87377168f3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">belgaard</media:title>
		</media:content>
	</item>
	</channel>
</rss>
