#113 – An Application for Viewing a WPF Visual Tree

Here’s a little WPF application that can load .xaml files and then display the underlying logical and visual trees. It uses the LogicalTreeHelper.GetChildren and VisualTreeHelper.GetChild methods to recursively descend through the logical and visual trees and display them in two TreeView controls.  (Currently only works if root element of the .xaml file is a <Window> element).

You can download an executable version of the application from: DisplayWpfTrees.zip

You can find a more detailed explanation of the application at: An Application to Let You View WPF Logical Trees

You can find full source code at the WPFLogicalTree project on Codeplex.

Advertisement

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: