<?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: How can I bind an ItemsControl to the values of an enumeration?</title>
	<atom:link href="http://bea.stollnitz.com/blog/?feed=rss2&#038;p=28" rel="self" type="application/rss+xml" />
	<link>http://bea.stollnitz.com/blog/?p=28</link>
	<description>on Silverlight and WPF</description>
	<lastBuildDate>Mon, 02 Aug 2010 17:57:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=28&#038;cpage=1#comment-157810</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Wed, 29 Jul 2009 21:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=28#comment-157810</guid>
		<description>I&#039;m glad you were able to figure it out!

Bea</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad you were able to figure it out!</p>
<p>Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://bea.stollnitz.com/blog/?p=28&#038;cpage=1#comment-157806</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 29 Jul 2009 21:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=28#comment-157806</guid>
		<description>Bea,

I figured it out by using a CollectionViewSource and then filter method into a code routine that filters the enumerator. Still love your website and visit as often as I can.

Dave G.</description>
		<content:encoded><![CDATA[<p>Bea,</p>
<p>I figured it out by using a CollectionViewSource and then filter method into a code routine that filters the enumerator. Still love your website and visit as often as I can.</p>
<p>Dave G.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://bea.stollnitz.com/blog/?p=28&#038;cpage=1#comment-157793</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 29 Jul 2009 20:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=28#comment-157793</guid>
		<description>Hi Bea,

Great article, I have an enumerator list that is bound to a combo box using the ObjectDataProvider works great, the problem is I need to be able to keep different elements of the enumerator from showing in the combo box based on other settings in the application. Using your example above; in most cases I want all three values but for this one instance I want just Small and Large (not medium) from the TShirtSizes enumeration (in short I need to keep the enumeration for the combo box because data is persisted to stream as an enumerated value). Any help would be appreciated.

Thanks
Dave G.</description>
		<content:encoded><![CDATA[<p>Hi Bea,</p>
<p>Great article, I have an enumerator list that is bound to a combo box using the ObjectDataProvider works great, the problem is I need to be able to keep different elements of the enumerator from showing in the combo box based on other settings in the application. Using your example above; in most cases I want all three values but for this one instance I want just Small and Large (not medium) from the TShirtSizes enumeration (in short I need to keep the enumeration for the combo box because data is persisted to stream as an enumerated value). Any help would be appreciated.</p>
<p>Thanks<br />
Dave G.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=28&#038;cpage=1#comment-1095</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Sat, 06 Oct 2007 01:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=28#comment-1095</guid>
		<description>Hi perter,

Yes, I realize that this sample is quite limited when it comes to language translation. I have seen people implementing this scenario by adding attributes over each value in the enumeration with better descriptions of each value. This method is more realistic than the one in this post because it allows sentences to be displayed in the ComboBox, but I&#039;m not sure how this would tie into globalization. You&#039;re probably aware of the globalization &lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/ms788718.aspx&quot; rel=&quot;nofollow&quot;&gt;docs in MSDN&lt;/a&gt;. Other than that, our WPF globalization expert, Chris Han, maintains a blog &lt;a href=&quot;http://blogs.msdn.com/text/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. He&#039;s incredibly smart and knowledgeable on this topic, and may be able to give you some pointers.

Sorry if I can&#039;t be more helpful on that topic,
Bea</description>
		<content:encoded><![CDATA[<p>Hi perter,</p>
<p>Yes, I realize that this sample is quite limited when it comes to language translation. I have seen people implementing this scenario by adding attributes over each value in the enumeration with better descriptions of each value. This method is more realistic than the one in this post because it allows sentences to be displayed in the ComboBox, but I&#8217;m not sure how this would tie into globalization. You&#8217;re probably aware of the globalization <a href="http://msdn2.microsoft.com/en-us/library/ms788718.aspx" rel="nofollow">docs in MSDN</a>. Other than that, our WPF globalization expert, Chris Han, maintains a blog <a href="http://blogs.msdn.com/text/" rel="nofollow">here</a>. He&#8217;s incredibly smart and knowledgeable on this topic, and may be able to give you some pointers.</p>
<p>Sorry if I can&#8217;t be more helpful on that topic,<br />
Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: perter</title>
		<link>http://bea.stollnitz.com/blog/?p=28&#038;cpage=1#comment-975</link>
		<dc:creator>perter</dc:creator>
		<pubDate>Thu, 04 Oct 2007 14:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=28#comment-975</guid>
		<description>After looking at your enumeration binding example (June 4 2006 blog) I have implemented something similar in my app.  However, language translation is an obvious issue going forward.  Would you know of any good samples to outline how to do this properly for translation and secondly a good overview of globalization for WPF apps?  I would love to see a sample implementation in simple terms rather than the MSDN docs.  Thanks!</description>
		<content:encoded><![CDATA[<p>After looking at your enumeration binding example (June 4 2006 blog) I have implemented something similar in my app.  However, language translation is an obvious issue going forward.  Would you know of any good samples to outline how to do this properly for translation and secondly a good overview of globalization for WPF apps?  I would love to see a sample implementation in simple terms rather than the MSDN docs.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=28&#038;cpage=1#comment-134</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Sat, 10 Jun 2006 14:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=28#comment-134</guid>
		<description>I&#039;m glad to hear that :)</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad to hear that :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://bea.stollnitz.com/blog/?p=28&#038;cpage=1#comment-133</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Sat, 10 Jun 2006 05:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=28#comment-133</guid>
		<description>Oh I love those keywords triggering a whole new load of information on google.
Multibind was *the* magic word (names *are* power nowadays).

Charles Petzold had an usable example for me how to do it, and it works lovely!

Thanks a lot, I owe you one!</description>
		<content:encoded><![CDATA[<p>Oh I love those keywords triggering a whole new load of information on google.<br />
Multibind was *the* magic word (names *are* power nowadays).</p>
<p>Charles Petzold had an usable example for me how to do it, and it works lovely!</p>
<p>Thanks a lot, I owe you one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=28&#038;cpage=1#comment-132</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Fri, 09 Jun 2006 13:20:55 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=28#comment-132</guid>
		<description>Hi Sam,

I believe a MultiBinding would solve your problem. Basically, it allows you to bind to two sources at the same time. You will have to write a converter that takes both sources as a parameter and produces the final value you want to show in the target.

I will keep this in mind for a future blog post. In the meantime, I&#039;m pretty sure the SDK has samples with this. If it doesn&#039;t I&#039;ll make this my *next* blog post. Let me know.

Bea</description>
		<content:encoded><![CDATA[<p>Hi Sam,</p>
<p>I believe a MultiBinding would solve your problem. Basically, it allows you to bind to two sources at the same time. You will have to write a converter that takes both sources as a parameter and produces the final value you want to show in the target.</p>
<p>I will keep this in mind for a future blog post. In the meantime, I&#8217;m pretty sure the SDK has samples with this. If it doesn&#8217;t I&#8217;ll make this my *next* blog post. Let me know.</p>
<p>Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://bea.stollnitz.com/blog/?p=28&#038;cpage=1#comment-131</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 08 Jun 2006 17:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=28#comment-131</guid>
		<description>I&#039;ve got a binding problem I can&#039;t think of any way to solve:

I want to draw my own fancy border around a TextBox.
Problem is, it can&#039;t be scaled automagically like a rectangle could, I need to bind to the size of the textbox to use it as coordinates in a path.

With a custom converter this does work nicely for ActualWidth or ActualHeight alone, but of course to get the bottom right corner I need to bind to ActualHeight and ActualWidth at once, and I can&#039;t find no way to achieve this.

Is there a way to bind to ActualWidth and ActualHeight at once? Or to create a converter that is bound to both and can itself be bound to?

Or maybe there is a whole other way to get the size of a control in a template for userdrawn content that can be bound to?

Thanks a lot!
Sam</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got a binding problem I can&#8217;t think of any way to solve:</p>
<p>I want to draw my own fancy border around a TextBox.<br />
Problem is, it can&#8217;t be scaled automagically like a rectangle could, I need to bind to the size of the textbox to use it as coordinates in a path.</p>
<p>With a custom converter this does work nicely for ActualWidth or ActualHeight alone, but of course to get the bottom right corner I need to bind to ActualHeight and ActualWidth at once, and I can&#8217;t find no way to achieve this.</p>
<p>Is there a way to bind to ActualWidth and ActualHeight at once? Or to create a converter that is bound to both and can itself be bound to?</p>
<p>Or maybe there is a whole other way to get the size of a control in a template for userdrawn content that can be bound to?</p>
<p>Thanks a lot!<br />
Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=28&#038;cpage=1#comment-130</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Tue, 06 Jun 2006 14:02:34 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=28#comment-130</guid>
		<description>That&#039;s correct :) You got it!
Bea</description>
		<content:encoded><![CDATA[<p>That&#8217;s correct :) You got it!<br />
Bea</p>
]]></content:encoded>
	</item>
</channel>
</rss>
