Class VisualTreeHelperEx
- Namespace
- H.Controls.ZoomBox
- Assembly
- H.Controls.ZoomBox.dll
public static class VisualTreeHelperEx
- Inheritance
-
VisualTreeHelperEx
- Inherited Members
-
Methods
FindAncestorByType(DependencyObject, Type, bool)
public static DependencyObject FindAncestorByType(DependencyObject element, Type type, bool specificTypeOnly)
Parameters
element
DependencyObject
type
Type
specificTypeOnly
bool
Returns
- DependencyObject
FindAncestorByType<T>(DependencyObject)
public static T FindAncestorByType<T>(DependencyObject depObj) where T : DependencyObject
Parameters
depObj
DependencyObject
Returns
- T
Type Parameters
T
public static Visual FindDescendantByName(Visual element, string name)
Parameters
element
Visual
name
string
Returns
- Visual
public static Visual FindDescendantByType(Visual element, Type type)
Parameters
element
Visual
type
Type
Returns
- Visual
public static Visual FindDescendantByType(Visual element, Type type, bool specificTypeOnly)
Parameters
element
Visual
type
Type
specificTypeOnly
bool
Returns
- Visual
public static T FindDescendantByType<T>(Visual element) where T : Visual
Parameters
element
Visual
Returns
- T
Type Parameters
T
public static Visual FindDescendantWithPropertyValue(Visual element, DependencyProperty dp, object value)
Parameters
element
Visual
dp
DependencyProperty
value
object
Returns
- Visual