<?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: The power of Styles and Templates in WPF</title>
	<atom:link href="http://bea.stollnitz.com/blog/?feed=rss2&#038;p=40" rel="self" type="application/rss+xml" />
	<link>http://bea.stollnitz.com/blog/?p=40</link>
	<description>on Silverlight and WPF</description>
	<lastBuildDate>Thu, 22 Jul 2010 20:56:04 +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=40&#038;cpage=1#comment-157391</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Sun, 26 Jul 2009 21:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=40#comment-157391</guid>
		<description>Hi NT,

It&#039;s true that certain scenarios can be tricky to implement in a performant way. I always recommend profiling your app before you&#039;re ready to release it. Once you understand where the bottlenecks are, there are ways to improve them. I find &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa970683.aspx&quot; rel=&quot;nofollow&quot;&gt;this MSDN article&lt;/a&gt; a good read on this topic.

Bea</description>
		<content:encoded><![CDATA[<p>Hi NT,</p>
<p>It&#8217;s true that certain scenarios can be tricky to implement in a performant way. I always recommend profiling your app before you&#8217;re ready to release it. Once you understand where the bottlenecks are, there are ways to improve them. I find <a href="http://msdn.microsoft.com/en-us/library/aa970683.aspx" rel="nofollow">this MSDN article</a> a good read on this topic.</p>
<p>Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NT</title>
		<link>http://bea.stollnitz.com/blog/?p=40&#038;cpage=1#comment-155559</link>
		<dc:creator>NT</dc:creator>
		<pubDate>Fri, 17 Jul 2009 14:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=40#comment-155559</guid>
		<description>This is all very well until you realize the performance impact of these WPF toys.</description>
		<content:encoded><![CDATA[<p>This is all very well until you realize the performance impact of these WPF toys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=40&#038;cpage=1#comment-153664</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Tue, 07 Jul 2009 21:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=40#comment-153664</guid>
		<description>David converted this post to Silverlight 2 a while ago: http://blogs.msdn.com/delay/archive/2008/03/12/lb-sv-why-three-wacky-uses-for-silverlight-2-s-listbox-and-scrollviewer.aspx. 

You can also find in David&#039;s blog a generic workaround for the fact that Silverlight doesn&#039;t support binding to a Setter&#039;s Value: http://blogs.msdn.com/delay/archive/2009/05/07/one-more-platform-difference-more-or-less-tamed-settervaluebindinghelper-makes-silverlight-setters-better.aspx

Hope this helps.

Bea</description>
		<content:encoded><![CDATA[<p>David converted this post to Silverlight 2 a while ago: <a href="http://blogs.msdn.com/delay/archive/2008/03/12/lb-sv-why-three-wacky-uses-for-silverlight-2-s-listbox-and-scrollviewer.aspx" rel="nofollow">http://blogs.msdn.com/delay/archive/2008/03/12/lb-sv-why-three-wacky-uses-for-silverlight-2-s-listbox-and-scrollviewer.aspx</a>. </p>
<p>You can also find in David&#8217;s blog a generic workaround for the fact that Silverlight doesn&#8217;t support binding to a Setter&#8217;s Value: <a href="http://blogs.msdn.com/delay/archive/2009/05/07/one-more-platform-difference-more-or-less-tamed-settervaluebindinghelper-makes-silverlight-setters-better.aspx" rel="nofollow">http://blogs.msdn.com/delay/archive/2009/05/07/one-more-platform-difference-more-or-less-tamed-settervaluebindinghelper-makes-silverlight-setters-better.aspx</a></p>
<p>Hope this helps.</p>
<p>Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel Bradea</title>
		<link>http://bea.stollnitz.com/blog/?p=40&#038;cpage=1#comment-153663</link>
		<dc:creator>Marcel Bradea</dc:creator>
		<pubDate>Tue, 07 Jul 2009 19:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=40#comment-153663</guid>
		<description>This example unfortunately doesn&#039;t seem to work in Silverlight (SL3 Beta). Setting a binding expression on a style setter results in &quot;Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)&quot; error. Is this a known bug?

I tried setting the style both in the root resources, the ListBox&#039;s resources, as well as its ItemContainerStyle property, all of which result in the same effect.</description>
		<content:encoded><![CDATA[<p>This example unfortunately doesn&#8217;t seem to work in Silverlight (SL3 Beta). Setting a binding expression on a style setter results in &#8220;Catastrophic failure (Exception from HRESULT: 0&#215;8000FFFF (E_UNEXPECTED)&#8221; error. Is this a known bug?</p>
<p>I tried setting the style both in the root resources, the ListBox&#8217;s resources, as well as its ItemContainerStyle property, all of which result in the same effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=40&#038;cpage=1#comment-349</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Tue, 18 Sep 2007 00:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=40#comment-349</guid>
		<description>Hello,

Unfortunately we don&#039;t support that feature. I can&#039;t think of a relatively simple workaround either. That would be a good feature to support when we release a DataGrid Control.

Thanks for your comment!
Bea</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Unfortunately we don&#8217;t support that feature. I can&#8217;t think of a relatively simple workaround either. That would be a good feature to support when we release a DataGrid Control.</p>
<p>Thanks for your comment!<br />
Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://bea.stollnitz.com/blog/?p=40&#038;cpage=1#comment-40</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 14 Aug 2007 03:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=40#comment-40</guid>
		<description>Is there a way to freeze WPF ListView columns (make a specified column and it&#039;s header stay in place when the user scrolls horizontally)?</description>
		<content:encoded><![CDATA[<p>Is there a way to freeze WPF ListView columns (make a specified column and it&#8217;s header stay in place when the user scrolls horizontally)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=40&#038;cpage=1#comment-39</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Mon, 09 Jul 2007 02:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=40#comment-39</guid>
		<description>Thanks for your comment. 

Yeah, I know I should be posting more often. Lately my job has been taking over my life and I find myself with little free time to do anything else. But you&#039;re right, I should bump the priority of the blog. This blog is the coolest, most fun work related activity I have going on and I should keep myself and my readers happy :)

Thanks!
Bea</description>
		<content:encoded><![CDATA[<p>Thanks for your comment. </p>
<p>Yeah, I know I should be posting more often. Lately my job has been taking over my life and I find myself with little free time to do anything else. But you&#8217;re right, I should bump the priority of the blog. This blog is the coolest, most fun work related activity I have going on and I should keep myself and my readers happy :)</p>
<p>Thanks!<br />
Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://bea.stollnitz.com/blog/?p=40&#038;cpage=1#comment-38</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 08 Jul 2007 19:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=40#comment-38</guid>
		<description>Please post Beatriz, there is so much wealth of information in this blog that it&#039;s a shame to only see 1 post every 1.5/2 months...</description>
		<content:encoded><![CDATA[<p>Please post Beatriz, there is so much wealth of information in this blog that it&#8217;s a shame to only see 1 post every 1.5/2 months&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://bea.stollnitz.com/blog/?p=40&#038;cpage=1#comment-34</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 06 May 2007 18:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=40#comment-34</guid>
		<description>Bea, I have been struggling with the Master-Details Scenario with one of the objects using UpdateSourceTrigger=Explicit. Could you please take a look at this post and give me some insight on what I could be doing wrong. 

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1509250&amp;SiteID=1</description>
		<content:encoded><![CDATA[<p>Bea, I have been struggling with the Master-Details Scenario with one of the objects using UpdateSourceTrigger=Explicit. Could you please take a look at this post and give me some insight on what I could be doing wrong. </p>
<p><a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1509250&#038;SiteID=1" rel="nofollow">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1509250&#038;SiteID=1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=40&#038;cpage=1#comment-36</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Sun, 08 Apr 2007 00:09:59 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=40#comment-36</guid>
		<description>Hi RN,

Did you post &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1556449&amp;SiteID=1&amp;mode=1&quot; rel=&quot;nofollow&quot;&gt;this &lt;/a&gt;in the forum? My answer to this questions sort of replies to your question.

The instance you need to pass as a parameter to the FindName method is the ContentPresenter. This is an element within the ControlTemplate that serves as the link between the ControlTemplate and the DataTemplate. Unfortunately there is no simple method you can call on the ControlTemplate to get to the ContentPresenter. In the sample I showed in the forum, I simply walk the visual tree manually because I know it&#039;s really small for that particular scenario. If you have a more complicated ControlTemplate, I recommend writing a simple utility method that walks the tree until it finds an element of type ContentPresenter.

We know that this is quite hard to do, it should be much simpler. I have an item on my &quot;wishlist&quot; about simplifying this scenario, but unfortunately we weren&#039;t able to get to it for the next version. 

Thanks,
Bea</description>
		<content:encoded><![CDATA[<p>Hi RN,</p>
<p>Did you post <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1556449&#038;SiteID=1&#038;mode=1" rel="nofollow">this </a>in the forum? My answer to this questions sort of replies to your question.</p>
<p>The instance you need to pass as a parameter to the FindName method is the ContentPresenter. This is an element within the ControlTemplate that serves as the link between the ControlTemplate and the DataTemplate. Unfortunately there is no simple method you can call on the ControlTemplate to get to the ContentPresenter. In the sample I showed in the forum, I simply walk the visual tree manually because I know it&#8217;s really small for that particular scenario. If you have a more complicated ControlTemplate, I recommend writing a simple utility method that walks the tree until it finds an element of type ContentPresenter.</p>
<p>We know that this is quite hard to do, it should be much simpler. I have an item on my &#8220;wishlist&#8221; about simplifying this scenario, but unfortunately we weren&#8217;t able to get to it for the next version. </p>
<p>Thanks,<br />
Bea</p>
]]></content:encoded>
	</item>
</channel>
</rss>
