Volume Control
Application-specific hotkeys for Windows
VolumeControl.WPF.VisualTreeHelpers Class Reference

Additional helper methods for navigating the visual tree. More...

Collaboration diagram for VolumeControl.WPF.VisualTreeHelpers:

Static Public Member Functions

static ? T FindAncestorWithType< T > (DependencyObject dependencyObject)
 Finds the ancestor of the specified dependencyObject with type T . More...
 

Detailed Description

Additional helper methods for navigating the visual tree.

Member Function Documentation

◆ FindAncestorWithType< T >()

static ? T VolumeControl.WPF.VisualTreeHelpers.FindAncestorWithType< T > ( DependencyObject  dependencyObject)
static

Finds the ancestor of the specified dependencyObject with type T .

Template Parameters
TThe type of the ancestor DependencyObject to retrieve.
Parameters
dependencyObjectThe DependencyObject to find the ancestor of.
Returns
The first ancestor of type T when found; otherwise, null.
Type Constraints
T :DependencyObject 

The documentation for this class was generated from the following file: