Additional helper methods for navigating the visual tree.
More...
Additional helper methods for navigating the visual tree.
◆ FindAncestorWithType< T >()
static ? T VolumeControl.WPF.VisualTreeHelpers.FindAncestorWithType< T > |
( |
DependencyObject |
dependencyObject | ) |
|
|
static |
Finds the ancestor of the specified dependencyObject with type T .
- Template Parameters
-
T | The type of the ancestor DependencyObject to retrieve. |
- Parameters
-
dependencyObject | The DependencyObject to find the ancestor of. |
- Returns
- The first ancestor of type T when found; otherwise,
null
.
The documentation for this class was generated from the following file: