FindAncestor Method
FindAncestor<T>(DependencyObject)
Returns the first ancestor of specified type
Declaration
public static T FindAncestor<T>(DependencyObject current)
where T : DependencyObject
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | current |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |