public static class TreeHelper
| Name | Value | Summary |
|---|---|---|
| FindChild |
T |
Finds a Child of a given item in the visual tree.
static
|
| FindChildren |
IEnumerable |
Analyzes both visual and logical tree in order to find all elements of a given
type that are descendants of the source item.
static
|
| GetAncestors |
IEnumerable |
Finds all Ancestors of a given item on the visual tree.
static
|
| GetChildObjects |
IEnumerable |
This method is an alternative to WPF's
VisualTreeHelper.GetChild method, which also
supports content elements. Keep in mind that for content elements,
this method falls back to the logical tree of the element.
static
|
| GetParentObject |
DependencyObject |
This method is an alternative to WPF's
VisualTreeHelper.GetParent method, which also supports content elements. Keep in mind that for content element,
this method falls back to the logical tree of the element!
static
|
| GetVisualAncestor |
T |
Tries to find and returns a visual ancestor, starting at the leaf.
If element is not of static
|
| GetVisualAncestry |
IEnumerable |
Returns full visual ancestry, starting at the leaf.
If element is not of static
|
| IsDescendantOf |
bool |
static
|
| TryFindFromPoint |
T |
Tries to locate a given item within the visual tree,
starting with the dependency object at a given position.
static
|
| TryFindParent |
T |
Finds a parent of a given item on the visual tree.
static
|