Understanding Visual Tree and Logical Tree

When talking about WPF applications, you will often hear about the Logical Tree and the Visual Tree. The Logical Tree is basically a tree representation of the .NET classes for user interface controls. Consider the following XAML code:

image

This code makes use of .NET objects within a hierarchical structure that can be refigured in a Logical Tree, as shown in Figure 31.8.

Figure 31.8 The Logical Tree provides a hierarchical view of the UI elements.

image

Starting from Visual Studio 2008 SP 1, you can investigate ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.