<?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>Of logical and visual trees in WPF</title><link>http://blogs.msdn.com/mikehillberg/archive/2008/05/23/Of-logical-and-visual-trees-in-WPF.aspx</link><description>This post is about the “logical tree” in WPF, and how it differs from the visual tree. For the most part you don’t need to understand this. But if you want to understand some of the nit-like details of property inheritance, {DynamicResource} references,</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>logical and visual trees in Silverlight</title><link>http://blogs.msdn.com/mikehillberg/archive/2008/05/23/Of-logical-and-visual-trees-in-WPF.aspx#8545014</link><pubDate>Sat, 24 May 2008 10:07:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8545014</guid><dc:creator>CuriousProgrammer</dc:creator><description>&lt;p&gt;Should I be concerned that Silverlight does not make the same distinction between logical and visual trees? &amp;nbsp;What compatibility issues will pop up down the road?&lt;/p&gt;
</description></item><item><title>Link Listing - May 26, 2008</title><link>http://blogs.msdn.com/mikehillberg/archive/2008/05/23/Of-logical-and-visual-trees-in-WPF.aspx#8554796</link><pubDate>Tue, 27 May 2008 15:26:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8554796</guid><dc:creator>Christopher Steen</dc:creator><description>&lt;p&gt;ASP.NET Ending a Response without Response.End() Exceptions? [Via: Rick Strahl ] UFrame: div meets...&lt;/p&gt;
</description></item><item><title>re: Of logical and visual trees in WPF</title><link>http://blogs.msdn.com/mikehillberg/archive/2008/05/23/Of-logical-and-visual-trees-in-WPF.aspx#8555423</link><pubDate>Tue, 27 May 2008 23:40:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8555423</guid><dc:creator>gmurray</dc:creator><description>&lt;p&gt;I've seen several instances with 3rd party controls where the visual parent chain is broken. I'll try to use VisualTreeHelper to navigate up the VTree and will get nothing before I reach the top. What causes this? &lt;/p&gt;
</description></item><item><title>re: logical and visual trees in Silverlight</title><link>http://blogs.msdn.com/mikehillberg/archive/2008/05/23/Of-logical-and-visual-trees-in-WPF.aspx#8560137</link><pubDate>Thu, 29 May 2008 23:57:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8560137</guid><dc:creator>MikeHillberg</dc:creator><description>&lt;p&gt;You mostly don't have to be concerned about it.&lt;/p&gt;
&lt;p&gt;We haven't added the logical tree into Silverlight, because Silverlight mostly doesn't encounter the situations that motivate it. &amp;nbsp;For example, one of the motivations for the logical tree is name lookup, primarily for ElementName bindings (e.g. &amp;quot;{Binding ElementName=textBlock1}&amp;quot;). &amp;nbsp;But Silverlight doesn't support ElementName bindings, so the motivation isn't there.&lt;/p&gt;
&lt;p&gt;A place where it does show up in Silverlight, though, is the Parent property. &amp;nbsp;Currently in the Silverlight 2.0 beta, the FrameworkElement.Parent property returns the visual parent rather than a logical parent. &amp;nbsp;We're investigating the best way to address that incompatibility.&lt;/p&gt;
</description></item><item><title>re: Of logical and visual trees in WPF</title><link>http://blogs.msdn.com/mikehillberg/archive/2008/05/23/Of-logical-and-visual-trees-in-WPF.aspx#8560192</link><pubDate>Fri, 30 May 2008 00:14:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8560192</guid><dc:creator>MikeHillberg</dc:creator><description>&lt;P&gt;Re this comment:&lt;/P&gt;
&lt;P&gt;"I've seen several instances with 3rd party controls where the visual parent chain is broken. I'll try to use VisualTreeHelper to navigate up the VTree and will get nothing before I reach the top. What causes this?"&lt;/P&gt;
&lt;P&gt;The most common situation for that is the case where the visual tree hasn't been set up yet. &amp;nbsp;Take this markup, for example:&lt;/P&gt;
&lt;P&gt;&amp;lt;Button&amp;gt;&amp;lt;TextBlock Text="..."/&amp;gt;&amp;lt;/Button&amp;gt;&lt;/P&gt;
&lt;P&gt;... When this is first parsed, the TextBlock is a logical child of the Button, but it's not a visual descendent yet. &amp;nbsp;It becomes a visual descendent when the Button's control template is applied. &amp;nbsp;That typically happens on the first layout (or if you explicitly call ApplyTemplate). &amp;nbsp;&lt;/P&gt;</description></item></channel></rss>