<?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 do I bind the items of a ComboBox? How do I get a ComboBoxItem from a data bound ComboBox?</title>
	<atom:link href="http://bea.stollnitz.com/blog/?feed=rss2&#038;p=4" rel="self" type="application/rss+xml" />
	<link>http://bea.stollnitz.com/blog/?p=4</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: kontrol</title>
		<link>http://bea.stollnitz.com/blog/?p=4&#038;cpage=1#comment-189239</link>
		<dc:creator>kontrol</dc:creator>
		<pubDate>Wed, 17 Feb 2010 16:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=4#comment-189239</guid>
		<description>This explains alot of my problems, thank you.

	    
    
                                                        
 	
     	  
    

IsSelected=&quot;{Binding Path=IsCorrect}&quot; doesn’t work for ComboBox but works for ListBox, now I know why. And now for a work around.</description>
		<content:encoded><![CDATA[<p>This explains alot of my problems, thank you.</p>
<p>IsSelected=&#8221;{Binding Path=IsCorrect}&#8221; doesn’t work for ComboBox but works for ListBox, now I know why. And now for a work around.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://bea.stollnitz.com/blog/?p=4&#038;cpage=1#comment-170744</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Wed, 25 Nov 2009 20:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=4#comment-170744</guid>
		<description>Thanks!  That works very nicely.</description>
		<content:encoded><![CDATA[<p>Thanks!  That works very nicely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=4&#038;cpage=1#comment-170253</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Fri, 20 Nov 2009 19:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=4#comment-170253</guid>
		<description>Hi Geoff,

I wonder if using a CompositeCollection would solve your problem. A CompositeCollection allows you to add a collection and individual items to an ItemsSource, all at the same time. You can read more about it in the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.windows.data.compositecollection.aspx&quot; rel=&quot;nofollow&quot;&gt;MSDN documentation&lt;/a&gt;.

Bea</description>
		<content:encoded><![CDATA[<p>Hi Geoff,</p>
<p>I wonder if using a CompositeCollection would solve your problem. A CompositeCollection allows you to add a collection and individual items to an ItemsSource, all at the same time. You can read more about it in the <a href="http://msdn.microsoft.com/en-us/library/system.windows.data.compositecollection.aspx" rel="nofollow">MSDN documentation</a>.</p>
<p>Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://bea.stollnitz.com/blog/?p=4&#038;cpage=1#comment-156505</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Tue, 21 Jul 2009 15:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=4#comment-156505</guid>
		<description>I have a ItemsSource that is an ObservableCollection for my ComboBox, and I set SelectedItem to a field in another object.  I would like the user to be able to select empty to specify they want the field set to null, but the ComboBox always seems to only display the items in the ObservableCollection.

Any thoughts on how to add the empty item?

I think I could have a separate ObservableCollection dependency property on my control and populate that from the real ObservableCollection + the empty item, but that seems like working around data binding rather than with it.</description>
		<content:encoded><![CDATA[<p>I have a ItemsSource that is an ObservableCollection for my ComboBox, and I set SelectedItem to a field in another object.  I would like the user to be able to select empty to specify they want the field set to null, but the ComboBox always seems to only display the items in the ObservableCollection.</p>
<p>Any thoughts on how to add the empty item?</p>
<p>I think I could have a separate ObservableCollection dependency property on my control and populate that from the real ObservableCollection + the empty item, but that seems like working around data binding rather than with it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=4&#038;cpage=1#comment-322</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Thu, 29 Sep 2005 17:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=4#comment-322</guid>
		<description>Hi Pavan,

I can&#039;t repro that behavior - if I comment out the &quot;comboBox.IsDropDownOpen = true;&quot; line, I get null for the ComboBoxItems, as expected. Maybe you opened the ComboBox manually first to select an item (causing the generation of the items)? 

Let me know if this is the case.

Bea</description>
		<content:encoded><![CDATA[<p>Hi Pavan,</p>
<p>I can&#8217;t repro that behavior &#8211; if I comment out the &#8220;comboBox.IsDropDownOpen = true;&#8221; line, I get null for the ComboBoxItems, as expected. Maybe you opened the ComboBox manually first to select an item (causing the generation of the items)? </p>
<p>Let me know if this is the case.</p>
<p>Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavan Podila</title>
		<link>http://bea.stollnitz.com/blog/?p=4&#038;cpage=1#comment-321</link>
		<dc:creator>Pavan Podila</dc:creator>
		<pubDate>Wed, 28 Sep 2005 17:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=4#comment-321</guid>
		<description>I was trying out your example on the Feb CTP bits and it looks like the API is consistent for both ListBox and ComboBox. No special care (opening/closing the dropdown) needs to be taken for the ComboBox when using the Items property.</description>
		<content:encoded><![CDATA[<p>I was trying out your example on the Feb CTP bits and it looks like the API is consistent for both ListBox and ComboBox. No special care (opening/closing the dropdown) needs to be taken for the ComboBox when using the Items property.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
