Class DependencyObjectExtension
- Namespace
- Loehnert.Lisrt.WpfHelpers
- Assembly
- Loehnert.Lisrt.dll
A dependency object extension to find child control by type - https://stackoverflow.com/questions/10279092/how-to-get-children-of-a-wpf-container-by-type.
public static class DependencyObjectExtension
- Inheritance
-
DependencyObjectExtension
- Inherited Members
Methods
GetChildOfType<T>(DependencyObject)
Finds child of Type T
from depObj
.
public static T GetChildOfType<T>(this DependencyObject depObj) where T : DependencyObject
Parameters
depObj
DependencyObjectFind child of type
T
.
Returns
- T
Type of
T
.
Type Parameters
T
Type of the child to be found.