VisualTreeHelper class
Provides utility methods that can used to traverse object relationships (along child object or parent object axes) in the visual tree.
Inheritance
- Object
- VisualTreeHelper
Syntax
Attributes
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.UI.Xaml.Media.IVisualTreeHelperStatics, NTDDI_WIN8)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The VisualTreeHelper class has these types of members:
Methods
The VisualTreeHelper class has these methods. It also inherits methods from the Object class.
| Method | Description |
|---|---|
| DisconnectChildrenRecursive | Explicitly removes all references from a target UIElement, with the goal of cleaning up reference cycles. |
| FindElementsInHostCoordinates(Point, UIElement) | Retrieves a set of objects that are located within a specified point of an object's coordinate space. |
| FindElementsInHostCoordinates(Point, UIElement, Boolean) | Retrieves a set of objects that are located within a specified point of an object's coordinate space. |
| FindElementsInHostCoordinates(Rect, UIElement) | Retrieves a set of objects that are located within a specified Rect of an object's coordinate space. |
| FindElementsInHostCoordinates(Rect, UIElement, Boolean) | Retrieves a set of objects that are located within a specified Rect of an object's coordinate space. |
| GetChild | Using the provided index, obtains a specific child object of the provided object by examining the visual tree. |
| GetChildrenCount | Returns the number of children that exist in an object's child collection in the visual tree. |
| GetParent | Returns an object's parent object in the visual tree. |
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
|
|
Metadata |
|
Build date: 12/4/2012
