<?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: ItemsControl: &#039;A&#039; is for Abundance</title>
	<atom:link href="http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/feed/" rel="self" type="application/rss+xml" />
	<link>http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/</link>
	<description>Drinking (and serving) the WPF Kool-Aid since 2002</description>
	<lastBuildDate>Mon, 30 Aug 2010 18:54:01 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dr. WPF</title>
		<link>http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/comment-page-1/#comment-132</link>
		<dc:creator>Dr. WPF</dc:creator>
		<pubDate>Tue, 18 Dec 2007 01:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=13#comment-132</guid>
		<description>Hi WPF Developer,&lt;br&gt;&lt;br&gt;It sounds like there may be a Padding value in play also in your scenario.  I&#039;d be happy to take a look if you want to send me a sample of the style you are using for your TreeViewItems that demonstrates the margin issue.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;-dw</description>
		<content:encoded><![CDATA[<p>Hi WPF Developer,</p>
<p>It sounds like there may be a Padding value in play also in your scenario.  I&#8217;d be happy to take a look if you want to send me a sample of the style you are using for your TreeViewItems that demonstrates the margin issue.</p>
<p>Regards,<br />-dw</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. WPF</title>
		<link>http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/comment-page-1/#comment-131</link>
		<dc:creator>Dr. WPF</dc:creator>
		<pubDate>Tue, 18 Dec 2007 01:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=13#comment-131</guid>
		<description>Hi Ali,&lt;br&gt;&lt;br&gt;I assume you are working with a ListView that is using a GridView to present its rows.  Although this looks like a data grid conceptually, it is really a virtualized stack panel of GridViewRowPresenter objects.  You should be able to use the row index to find the proper GridViewRowPresenter (which will be a child of the ListViewItem for the given row).  You can then use the column index to find the cell within the presenter.&lt;br&gt;&lt;br&gt;Chances are that you will want to modify a data item based on its column index.  This can get tricky for a GridView (because columns can be dragged around to reorder them).  There are some internal properties that will give you the proper cell/data item mapping, but it will require reflection to access these.&lt;br&gt;&lt;br&gt;Although I have managed to push the native GridView further than it was designed to go, it has always been through trial and terror.  The easiest (and best, imho) solution for .NET 3.0/3.5 is to use a *real* data grid from a 3rd party vendor like Xceed.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;-dw</description>
		<content:encoded><![CDATA[<p>Hi Ali,</p>
<p>I assume you are working with a ListView that is using a GridView to present its rows.  Although this looks like a data grid conceptually, it is really a virtualized stack panel of GridViewRowPresenter objects.  You should be able to use the row index to find the proper GridViewRowPresenter (which will be a child of the ListViewItem for the given row).  You can then use the column index to find the cell within the presenter.</p>
<p>Chances are that you will want to modify a data item based on its column index.  This can get tricky for a GridView (because columns can be dragged around to reorder them).  There are some internal properties that will give you the proper cell/data item mapping, but it will require reflection to access these.</p>
<p>Although I have managed to push the native GridView further than it was designed to go, it has always been through trial and terror.  The easiest (and best, imho) solution for .NET 3.0/3.5 is to use a *real* data grid from a 3rd party vendor like Xceed.</p>
<p>Cheers,<br />-dw</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WPF Developer</title>
		<link>http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/comment-page-1/#comment-130</link>
		<dc:creator>WPF Developer</dc:creator>
		<pubDate>Thu, 13 Dec 2007 01:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=13#comment-130</guid>
		<description>Hi,&lt;br&gt; Im creating some treeview items inside a treeview. I tried giving background with border for the Treeview items and i find that there is a distance between the margin and the child items with no colours.Can you help me fix this?</description>
		<content:encoded><![CDATA[<p>Hi,<br /> Im creating some treeview items inside a treeview. I tried giving background with border for the Treeview items and i find that there is a distance between the margin and the child items with no colours.Can you help me fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali Adams</title>
		<link>http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/comment-page-1/#comment-129</link>
		<dc:creator>Ali Adams</dc:creator>
		<pubDate>Tue, 11 Dec 2007 19:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=13#comment-129</guid>
		<description>Sorry if the question has been asked already, but I am stuck at trying to access (read and write) the content on a cell give it row and column indexes. Pleeeeease help me Dr WPF.&lt;br&gt;God &gt; infinity&lt;br&gt;Solid, Liquid, Gas, Plasma, Light, Soul, Spirit :)</description>
		<content:encoded><![CDATA[<p>Sorry if the question has been asked already, but I am stuck at trying to access (read and write) the content on a cell give it row and column indexes. Pleeeeease help me Dr WPF.<br />God > infinity<br />Solid, Liquid, Gas, Plasma, Light, Soul, Spirit <img src='http://drwpf.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. WPF</title>
		<link>http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/comment-page-1/#comment-128</link>
		<dc:creator>Dr. WPF</dc:creator>
		<pubDate>Sat, 20 Oct 2007 09:39:06 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=13#comment-128</guid>
		<description>&lt;div class=&quot;jbr&quot;&gt;Hi Jason,&lt;br&gt;&lt;br&gt;Yes, if only it were that easy!  TabControl is its own strange little beast in a lot of ways.  I will have to dedicate a special post to it in this series.  In the meantime, check out Nathan&#039;s post &lt;a href=&quot;http://designerslove.net/?p=88&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;</description>
		<content:encoded><![CDATA[<div class="jbr">Hi Jason,</p>
<p>Yes, if only it were that easy!  TabControl is its own strange little beast in a lot of ways.  I will have to dedicate a special post to it in this series.  In the meantime, check out Nathan&#8217;s post <a href="http://designerslove.net/?p=88" target="_blank">here</a>.</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Kemp</title>
		<link>http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/comment-page-1/#comment-127</link>
		<dc:creator>Jason Kemp</dc:creator>
		<pubDate>Sat, 20 Oct 2007 09:36:49 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=13#comment-127</guid>
		<description>Dr, I&#039;m trying to override a TabControl&#039;s ItemPanel so it displays it&#039;s items in a vertical stack, but the intuitive &lt;TabControl.ItemsPanel&gt; &lt;ItemsPanelTemplate&gt; &lt;StackPanel IsItemsHost=&quot;True&quot;/&gt; &lt;/ItemsPanelTemplate&gt; &lt;/TabControl.ItemsPanel&gt;   -- doesn&#039;t seem to work. How can I do this?  I realize it sounds funny (like why not just use a ListBox) but this is for a demo where I can demonstrate that a control can change appearance without changing logical structure.</description>
		<content:encoded><![CDATA[<p>Dr, I&#8217;m trying to override a TabControl&#8217;s ItemPanel so it displays it&#8217;s items in a vertical stack, but the intuitive &lt;TabControl.ItemsPanel&gt; &lt;ItemsPanelTemplate&gt; &lt;StackPanel IsItemsHost=&quot;True&quot;/&gt; &lt;/ItemsPanelTemplate&gt; &lt;/TabControl.ItemsPanel&gt;   &#8212; doesn&#8217;t seem to work. How can I do this?  I realize it sounds funny (like why not just use a ListBox) but this is for a demo where I can demonstrate that a control can change appearance without changing logical structure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marlon Grech</title>
		<link>http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/comment-page-1/#comment-126</link>
		<dc:creator>Marlon Grech</dc:creator>
		<pubDate>Sat, 20 Oct 2007 09:32:16 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=13#comment-126</guid>
		<description>Great post, you are the best!!!!</description>
		<content:encoded><![CDATA[<p>Great post, you are the best!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. WPF</title>
		<link>http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/comment-page-1/#comment-125</link>
		<dc:creator>Dr. WPF</dc:creator>
		<pubDate>Wed, 17 Oct 2007 02:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=13#comment-125</guid>
		<description>Hi Jens, To right-align a column in a ListView, you need to define a cell template.  If its just textual data in that column, your template can simply be a TextBlock element whose TextAlignment property is set to &quot;Right&quot;.  Cheers, -dw</description>
		<content:encoded><![CDATA[<p>Hi Jens, To right-align a column in a ListView, you need to define a cell template.  If its just textual data in that column, your template can simply be a TextBlock element whose TextAlignment property is set to &#8220;Right&#8221;.  Cheers, -dw</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Engelbrechtsen</title>
		<link>http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/comment-page-1/#comment-124</link>
		<dc:creator>Jens Engelbrechtsen</dc:creator>
		<pubDate>Wed, 17 Oct 2007 01:55:10 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=13#comment-124</guid>
		<description>Hi.  Well ,first thanks for a great intro to the different controls.  I would though have been nice i you were able to download the xml / ico resources so you did have the possibility to fiddle a bit with the code.  Regarding the illustration of the listview -  As a newbee to wpf i have seen a couple of listview tutorials but none which have alignment of the text in a column ! e.g. if you wanted to represent currency to a user.  Or a row select which collects all the cell values in a row , so you are able to manipulate data as one see fit.  At this point it seems like the grid control is none existing in wpf yet.  I think that this has a very high importancy to windows / web developers. This i think is an obstruction in adopting wpf in depth to one&#039;s applications at this moment.  Any way ,thanks for a great site which a have added to my rss feeds.  Jens</description>
		<content:encoded><![CDATA[<p>Hi.  Well ,first thanks for a great intro to the different controls.  I would though have been nice i you were able to download the xml / ico resources so you did have the possibility to fiddle a bit with the code.  Regarding the illustration of the listview &#8211;  As a newbee to wpf i have seen a couple of listview tutorials but none which have alignment of the text in a column ! e.g. if you wanted to represent currency to a user.  Or a row select which collects all the cell values in a row , so you are able to manipulate data as one see fit.  At this point it seems like the grid control is none existing in wpf yet.  I think that this has a very high importancy to windows / web developers. This i think is an obstruction in adopting wpf in depth to one&#8217;s applications at this moment.  Any way ,thanks for a great site which a have added to my rss feeds.  Jens</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Wang</title>
		<link>http://drwpf.com/blog/2007/10/15/itemscontrol-a-is-for-abundance/comment-page-1/#comment-123</link>
		<dc:creator>Martin Wang</dc:creator>
		<pubDate>Wed, 17 Oct 2007 01:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=13#comment-123</guid>
		<description>Hi doc, your brilliant posts make me feel like saying something.  It is always the pleasure to read your posts. They can always resolve some problems of mine, which makes me expect even more outputs from you.  Just keep going, doc! I wish I could be as good as you are some day!</description>
		<content:encoded><![CDATA[<p>Hi doc, your brilliant posts make me feel like saying something.  It is always the pleasure to read your posts. They can always resolve some problems of mine, which makes me expect even more outputs from you.  Just keep going, doc! I wish I could be as good as you are some day!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
