Tag Archives: WPF Visual Tree Read Programatically



How to Retrieve WPF Visual Tree Programmatically ?

In previous tip, Abhishek discussed about basic of Logical and Visual Tree in WPF.  In this tip I am going to explain how you can retrieve and examine the Visual Tree programmatically in WPF. The VisualTreeHelper provides few API Methods GetChildrenCount(), GetChild() and GetParent() using which you can get details of the Visual Tree structure.