<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>XAML Load support in Cider May CTP Release. Sample app.</title><link>http://blogs.msdn.com/nikola/archive/2006/06/20/xaml-load-support-in-cider-may-ctp-release-sample-app.aspx</link><description>You would be glad to know that some of the improvements in May CTP include: - Support for x:Static - Traversing properties, for e xample: TargetProperty = " (Control.Background).(LinearGradientBrush.GradientStops)[1].(Offset) " - Improved resolution of</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: XAML Load support in Cider May CTP Release. Sample app.</title><link>http://blogs.msdn.com/nikola/archive/2006/06/20/xaml-load-support-in-cider-may-ctp-release-sample-app.aspx#641967</link><pubDate>Wed, 21 Jun 2006 23:50:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:641967</guid><dc:creator>zhanbos</dc:creator><description>Great to see you blog finally!&lt;br&gt;</description></item><item><title>WPF RSS Reader Walkthrough</title><link>http://blogs.msdn.com/nikola/archive/2006/06/20/xaml-load-support-in-cider-may-ctp-release-sample-app.aspx#651594</link><pubDate>Fri, 30 Jun 2006 04:50:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:651594</guid><dc:creator>See Win App</dc:creator><description>Wanted to point you to an article that one of our SDETs, Nikola Mihaylov,&amp;amp;amp;nbsp;wrote -- it's an RSS reader...</description></item><item><title>re: XAML Load support in Cider May CTP Release. Sample app.</title><link>http://blogs.msdn.com/nikola/archive/2006/06/20/xaml-load-support-in-cider-may-ctp-release-sample-app.aspx#9146460</link><pubDate>Thu, 27 Nov 2008 16:38:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9146460</guid><dc:creator>ashok kumar </dc:creator><description>&lt;P&gt;Hi &lt;/P&gt;
&lt;P&gt;send me how to populate a label control dynamically using itemtemplate.&lt;/P&gt;
&lt;P&gt;In my requirment i am dynamically assigning the value to the labels... but the requirment asks needs to populate and assign the value based on how many values come.. it will come upto 36 values... can u please provide a POC to check that account&lt;/P&gt;
&lt;P&gt;please send me the mail &lt;/P&gt;
&lt;P&gt;tashok_infotech@yahoo.co.in&lt;/P&gt;</description></item><item><title>re: XAML Load support in Cider May CTP Release. Sample app.</title><link>http://blogs.msdn.com/nikola/archive/2006/06/20/xaml-load-support-in-cider-may-ctp-release-sample-app.aspx#9147596</link><pubDate>Thu, 27 Nov 2008 21:44:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9147596</guid><dc:creator>nikola</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I tried the scenario &amp;quot;add the number for each item next to ListBox&amp;quot;, and it works - hopefully this is similar to the thing you want to do.&lt;/p&gt;
&lt;p&gt;Here's how to do it:&lt;/p&gt;
&lt;p&gt;1. Download the sample from: &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms771560.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms771560.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. in data.cs, add this to the Person class:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;private ObservableCollection&amp;lt;Person&amp;gt; container;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;public int Index {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;get { return container.IndexOf(this) + 1; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;public Person(string first, string last, string town, ObservableCollection&amp;lt;Person&amp;gt; container) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.container = container;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.firstname = first;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.lastname = last;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.hometown = town;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;3. change the People class to use the new constructor:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public class People : ObservableCollection&amp;lt;Person&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public People(): base()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add(new Person(&amp;quot;Michael&amp;quot;, &amp;quot;Alexander&amp;quot;, &amp;quot;Bellevue&amp;quot;, this));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add(new Person(&amp;quot;Jeff&amp;quot;, &amp;quot;Hay&amp;quot;, &amp;quot;Redmond&amp;quot;, this));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add(new Person(&amp;quot;Christina&amp;quot;, &amp;quot;Lee&amp;quot;, &amp;quot;Kirkland&amp;quot;, this));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add(new Person(&amp;quot;Samantha&amp;quot;, &amp;quot;Smith&amp;quot;, &amp;quot;Seattle&amp;quot;, this));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;4. in Window1.xaml, add DataTemplate in Window.Resources (for the Person class):&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;DataTemplate x:Key=&amp;quot;person&amp;quot; &amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;StackPanel Orientation=&amp;quot;Horizontal&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Label Content=&amp;quot;{Binding Index}&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Label Content=&amp;quot;{Binding FirstName}&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/StackPanel&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/DataTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt;5. Add ItemTemplate=&amp;quot;{StaticResource person}&amp;quot; to the ListBox&lt;/p&gt;
&lt;p&gt;Note: This implementation is missing one part: you may have to call property updated for each item whenever a new item is added/removed from the People observable collection&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;p&gt;Please let me know!&lt;/p&gt;
&lt;p&gt;Nikola&lt;/p&gt;
</description></item></channel></rss>