VisualTreeExtensions
Provides useful extensions for working with the visual tree.
Методы
GetLogicalChildren(FrameworkElement) : IEnumerable<FrameworkElement>
Retrieves all the logical children of a framework element using a breadth-first search. For performance reasons this method manually manages the stack instead of using recursion.
- parent
- The parent framework element.
Возвращает: The logical children of the framework element.
GetVisualAncestors(DependencyObject) : IEnumerable<DependencyObject>
Get the visual tree ancestors of an element.
- element
- The element.
Возвращает: The visual tree ancestors of the element.
GetVisualAncestorsAndSelf(DependencyObject) : IEnumerable<DependencyObject>
Get the visual tree ancestors of an element and the element itself.
- element
- The element.
Возвращает: The visual tree ancestors of an element and the element itself.
GetVisualAncestorsAndSelfIterator(DependencyObject) : IEnumerable<DependencyObject>
Get the visual tree ancestors of an element and the element itself.
- element
- The element.
Возвращает: The visual tree ancestors of an element and the element itself.
GetVisualChildren(DependencyObject) : IEnumerable<DependencyObject>
Get the visual tree children of an element.
- element
- The element.
Возвращает: The visual tree children of an element.
GetVisualChildrenAndSelf(DependencyObject) : IEnumerable<DependencyObject>
Get the visual tree children of an element and the element itself.
- element
- The element.
Возвращает: The visual tree children of an element and the element itself.
GetVisualChildrenAndSelfIterator(DependencyObject) : IEnumerable<DependencyObject>
Get the visual tree children of an element and the element itself.
- element
- The element.
Возвращает: The visual tree children of an element and the element itself.
GetVisualDescendants(DependencyObject) : IEnumerable<DependencyObject>
Get the visual tree descendants of an element.
- element
- The element.
Возвращает: The visual tree descendants of an element.
GetVisualDescendantsAndSelf(DependencyObject) : IEnumerable<DependencyObject>
Get the visual tree descendants of an element and the element itself.
- element
- The element.
Возвращает: The visual tree descendants of an element and the element itself.
GetVisualDescendantsAndSelfIterator(DependencyObject) : IEnumerable<DependencyObject>
Get the visual tree descendants of an element and the element itself.
- element
- The element.
Возвращает: The visual tree descendants of an element and the element itself.
GetVisualSiblings(DependencyObject) : IEnumerable<DependencyObject>
Get the visual tree siblings of an element.
- element
- The element.
Возвращает: The visual tree siblings of an element.
GetVisualSiblingsAndSelf(DependencyObject) : IEnumerable<DependencyObject>
Get the visual tree siblings of an element and the element itself.
- element
- The element.
Возвращает: The visual tree siblings of an element and the element itself.
InvokeOnLayoutUpdated(FrameworkElement, Action)
Perform an action when the element's LayoutUpdated event fires.
- element
- The element.
- action
- The action to perform.