<?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 on: The Missing .NET #7: Displaying Enums in WPF</title>
	<atom:link href="http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/</link>
	<description>Trapped online since 2004</description>
	<lastBuildDate>Wed, 11 Jan 2012 10:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Steve C</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/comment-page-1/#comment-773</link>
		<dc:creator>Steve C</dc:creator>
		<pubDate>Thu, 07 Jul 2011 03:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/#comment-773</guid>
		<description>Linus, read AC374&#039;s note. You have to swap a bit of code to make it work.</description>
		<content:encoded><![CDATA[<p>Linus, read AC374&#8242;s note. You have to swap a bit of code to make it work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soarez</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/comment-page-1/#comment-753</link>
		<dc:creator>Soarez</dc:creator>
		<pubDate>Sat, 22 Jan 2011 11:11:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/#comment-753</guid>
		<description>Creating objects with the activator is very costly, I don&#039;t see why do you have to use reflection to create generic dictionaries where simple non-generic hashtables would suffice. Caching the result of DisplayNames property might also speed it up.</description>
		<content:encoded><![CDATA[<p>Creating objects with the activator is very costly, I don&#8217;t see why do you have to use reflection to create generic dictionaries where simple non-generic hashtables would suffice. Caching the result of DisplayNames property might also speed it up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linus</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/comment-page-1/#comment-752</link>
		<dc:creator>Linus</dc:creator>
		<pubDate>Tue, 18 Jan 2011 06:50:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/#comment-752</guid>
		<description>Hi, I have got an error in the DisplayNames property on line: 
displayValues.Add(enumValue, displayString);

it says the enumValues is not of type &quot;System.String&quot; and cannot be used in this generic collection.</description>
		<content:encoded><![CDATA[<p>Hi, I have got an error in the DisplayNames property on line:<br />
displayValues.Add(enumValue, displayString);</p>
<p>it says the enumValues is not of type &#8220;System.String&#8221; and cannot be used in this generic collection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nahuel</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/comment-page-1/#comment-747</link>
		<dc:creator>Nahuel</dc:creator>
		<pubDate>Sun, 12 Dec 2010 15:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/#comment-747</guid>
		<description>Excellent article! Its what I was looking for, And I was not expecting to laugh when reading it, but that is what happend. You should write a book, i would buy it because im sure it wont be boreing.
(Sory for my english, im from Argentina)</description>
		<content:encoded><![CDATA[<p>Excellent article! Its what I was looking for, And I was not expecting to laugh when reading it, but that is what happend. You should write a book, i would buy it because im sure it wont be boreing.<br />
(Sory for my english, im from Argentina)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve C</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/comment-page-1/#comment-718</link>
		<dc:creator>Steve C</dc:creator>
		<pubDate>Wed, 07 Jul 2010 03:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/#comment-718</guid>
		<description>That&#039;s enough to make me use a table instead of an enum.</description>
		<content:encoded><![CDATA[<p>That&#8217;s enough to make me use a table instead of an enum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/comment-page-1/#comment-706</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 11 Jun 2010 12:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/#comment-706</guid>
		<description>unfortunatelly this solution is absurdally slow, for even just 100 enum-fueled comboboxes in list. So for me its useless.</description>
		<content:encoded><![CDATA[<p>unfortunatelly this solution is absurdally slow, for even just 100 enum-fueled comboboxes in list. So for me its useless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/comment-page-1/#comment-692</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 09 Apr 2010 14:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/#comment-692</guid>
		<description>Fantastic writeup, thank you for sharing this!  It has definitely helped me out.

By the way, shouldn&#039;t no spaces make you 32.33 (repeating, of course)% more efficient?</description>
		<content:encoded><![CDATA[<p>Fantastic writeup, thank you for sharing this!  It has definitely helped me out.</p>
<p>By the way, shouldn&#8217;t no spaces make you 32.33 (repeating, of course)% more efficient?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/comment-page-1/#comment-690</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 06 Apr 2010 21:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/#comment-690</guid>
		<description>Very nice write-up.  I learned a lot.  Thanks.
I had one issue when implementing this.  The new XAML GUI dev environments (Blend and the VS designer) choke on the EnumDisplayer class.  It looks like they&#039;re trying to be too smart for their own good and how you define displayValues confuses them.  They throw a null reference exception when they try to inspect the Convert method.

Adding the below to the Convert method fixes it:
if (displayValues == null) return null;

This instantiation of objects within XAML is all very confusing.  Can you recommend a source of a good explanation on how this works?</description>
		<content:encoded><![CDATA[<p>Very nice write-up.  I learned a lot.  Thanks.<br />
I had one issue when implementing this.  The new XAML GUI dev environments (Blend and the VS designer) choke on the EnumDisplayer class.  It looks like they&#8217;re trying to be too smart for their own good and how you define displayValues confuses them.  They throw a null reference exception when they try to inspect the Convert method.</p>
<p>Adding the below to the Convert method fixes it:<br />
if (displayValues == null) return null;</p>
<p>This instantiation of objects within XAML is all very confusing.  Can you recommend a source of a good explanation on how this works?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Klaus</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/comment-page-1/#comment-619</link>
		<dc:creator>Klaus</dc:creator>
		<pubDate>Thu, 23 Apr 2009 15:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/#comment-619</guid>
		<description>Excellent stuff.  Thank you.</description>
		<content:encoded><![CDATA[<p>Excellent stuff.  Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WolfMoon</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/comment-page-1/#comment-611</link>
		<dc:creator>WolfMoon</dc:creator>
		<pubDate>Thu, 19 Mar 2009 09:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-7-displaying-enums-in-wpf/#comment-611</guid>
		<description>Both thumbs up for this solution. That&#039;s exactly what I was looking for. It&#039;s smart, simple and very flexible - true programming gem!</description>
		<content:encoded><![CDATA[<p>Both thumbs up for this solution. That&#8217;s exactly what I was looking for. It&#8217;s smart, simple and very flexible &#8211; true programming gem!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

