<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Report a Silverlight Bug</title><link>http://forums.silverlight.net/forums/28.aspx</link><description>Found a bug in Silverlight? Use this forum to describe the bug and the code or steps to reproduce it.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Can only bind ItemsSource to IEnumerable in XAML</title><link>http://forums.silverlight.net/forums/thread/74647.aspx</link><pubDate>Fri, 25 Jul 2008 14:09:42 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:74647</guid><dc:creator>atm_grifter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/74647.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=74647</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes, this is the workaround I&amp;#39;ve decided to use.&amp;nbsp; Thanks for the response!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Can only bind ItemsSource to IEnumerable in XAML</title><link>http://forums.silverlight.net/forums/thread/74504.aspx</link><pubDate>Fri, 25 Jul 2008 05:51:34 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:74504</guid><dc:creator>Yi-Lun Luo - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/74504.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=74504</wfw:commentRss><description>&lt;p&gt;Hello, thanks for reporting this issue. It looks similar to a known problem. TemplateBinding doesn&amp;#39;t work for collection types. Note this only affects TemplateBinding. In a normal binding it should work fine. The data source can be any kind of collections. So a workaround is:&lt;/p&gt;
&lt;p&gt;&amp;lt;ItemsControl x:Name=&amp;quot;ic&amp;quot; Background=&amp;quot;Blue&amp;quot; Margin=&amp;quot;0,0,0,0&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;public override void OnApplyTemplate()&lt;br /&gt;{&lt;br /&gt;base.OnApplyTemplate();&lt;br /&gt;ItemsControl ic = this.GetTemplateChild(&amp;quot;ic&amp;quot;) as ItemsControl;&lt;br /&gt;if (ic != null)&lt;br /&gt;{&lt;br /&gt;Binding b = new Binding(&amp;quot;TestCollection&amp;quot;);&lt;br /&gt;b.Source = this;&lt;br /&gt;ic.SetBinding(ItemsControl.ItemsSourceProperty, b);&lt;br /&gt;}&lt;br /&gt;}&lt;/p&gt;</description></item><item><title>Can only bind ItemsSource to IEnumerable in XAML</title><link>http://forums.silverlight.net/forums/thread/74014.aspx</link><pubDate>Wed, 23 Jul 2008 20:38:28 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:74014</guid><dc:creator>atm_grifter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/74014.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=74014</wfw:commentRss><description>&lt;p&gt;Since no one has responded to the following thread in the Controls forum, &lt;a href="http://silverlight.net/forums/t/20873.aspx"&gt;http://silverlight.net/forums/t/20873.aspx&lt;/a&gt;, I figured I&amp;#39;d go ahead and report this behavior as a bug.&lt;/p&gt;&lt;p&gt;To summarize in Silverlight you are not able to bind the ItemsSource of an ItemsControl to a collection that is any type other than IEnumerable, including types that implement IEnumerable.&amp;nbsp; So, you can&amp;#39;t bind to List&amp;lt;T&amp;gt; or ObservableCollection&amp;lt;T&amp;gt;.&amp;nbsp; This seems like a glaring omission.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>