-
Home
-
API
-
Avalonia.HeadlessTestingFramework
-
LogicalTreeTestHelper
-
Methods
-
HasLogicalAncestor(ILogical)
HasLogicalAncestor(ILogical) Method
Definition
Checks if the logical has an ancestor of a specific type.
public static bool HasLogicalAncestor<T>(this ILogical logical)
where T : class
Type parameters
- T
- The type of ancestor to check for.
Parameters
Returns
- Boolean
- True if an ancestor of the specified type exists.