[]
Gets an element's first ancestor of a given type.
public static T GetParentOfType<T>(DependencyObject e) where T : DependencyObject
Type | Name | Description |
---|---|---|
DependencyObject | e | Child element. |
Type | Description |
---|---|
T |
Name | Description |
---|---|
T | Type to look for. |