WPF UI elements are hierarchically related through a logical tree which reflects the hierachy of the visual elements and the components of these elements. A visual element is composed of elements whcih assist in its rendering such as Border, ContentPresenter, etc. The XAML defines this tree. Visual elements of the Logical Tree consitute the Visual Tree.
The Logical Tree is responsible for:
The Visual Tree is responsible for:
These trees may be transversed via Helpers