Click or drag to resize

DependencyObjectExtensions Class

Extensions methods to ease dealing with dependency objects.
Inheritance Hierarchy
SystemObject
  TomsToolbox.WpfDependencyObjectExtensions

Namespace:  TomsToolbox.Wpf
Assembly:  TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 1.0.74.0
Syntax
public static class DependencyObjectExtensions

The DependencyObjectExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAncestors
Returns an enumeration of the ancestor elements in the logical tree of this element.

[NotNull, ItemNotNull]

Public methodStatic memberAncestorsAndSelf
Returns an enumeration of elements that contain this element, and the ancestors in the logical tree of this element.

[NotNull, ItemNotNull]

Public methodStatic memberGetExtent
Gets the extent of the thickness when applied to an empty rectangle.
Public methodStatic memberGetRootVisual
Gets the root visual for the item.

[NotNull]

Public methodStatic memberGetWindowHandle
Gets the window handle of the HwndSource hosting this item.
Public methodStatic memberTryFindAncestorT(DependencyObject)
Returns the first element in the ancestor list that implements the type of the type parameter.

[CanBeNull]

Public methodStatic memberTryFindAncestorT(DependencyObject, FuncT, Boolean)
Returns the first element in the ancestor list that implements the type of the type parameter.

[CanBeNull]

Public methodStatic memberTryFindAncestorOrSelfT(DependencyObject)
Returns the first element in the ancestor list that implements the type of the type parameter.

[CanBeNull]

Public methodStatic memberTryFindAncestorOrSelfT(DependencyObject, FuncT, Boolean)
Returns the first element in the ancestor list that implements the type of the type parameter.

[CanBeNull]

Public methodStatic memberTryGetRootVisual
Gets the root visual for the item.

[CanBeNull]

Public methodStatic memberVisualAncestors
Returns an enumeration of the ancestor elements in the visual tree of this element.

[NotNull, ItemNotNull]

Public methodStatic memberVisualAncestorsAndSelf
Returns an enumeration of elements that contains this element, and the ancestors in the visual tree of this element.

[NotNull, ItemNotNull]

Public methodStatic memberVisualChildren
Enumerates the immediate children of the specified item.

[NotNull, ItemNotNull]

Public methodStatic memberVisualChildrenAndSelf
Enumerates the specified item and it's immediate children.

[NotNull, ItemNotNull]

Public methodStatic memberVisualDescendants
Enumerates all visuals descendants of the specified item.

[NotNull, ItemNotNull]

Public methodStatic memberVisualDescendantsAndSelf
Enumerates the specified item and all it's visual descendants.

[NotNull, ItemNotNull]

Top
See Also