LogicalTreeHelperExtended Class
Contains static methods that are useful for performing common tasks with nodes in a logical tree.
public static class LogicalTreeHelperExtended
- Inheritance:
- object object
Methods
GetRoot(DependencyObject)
Returns the root System.Windows.DependencyObject in the logical tree.
public static DependencyObject GetRoot(DependencyObject source)
Parameter | Type | Description |
---|---|---|
source | DependencyObject | The visual whose root is returned. |
Returns
- DependencyObject:
The root System.Windows.DependencyObject in the visual tree.
Merge(params object[])
Merges the specified logical children into a single list, which can be collections or individual objects.
public static IEnumerator Merge(params object[] items)
Parameter | Type | Description |
---|---|---|
items | object[] | The items to merge. |
Returns
- IEnumerator:
An IEnumerator which references a list of all the given items.