LogicalExtensions.

FindLogicalDescendantOfType<T>(ILogical, bool) Method

Summary

Finds first descendant of given type.
Namespace
Avalonia.LogicalTree
Containing Type
LogicalExtensions

Syntax

public static T FindLogicalDescendantOfType<T>(this ILogical logical, bool includeSelf = false) 
    where T : class

Type Parameters

Name Description
T Descendant type.

Parameters

Name Type Description
logical ILogical The logical.
includeSelf bool If given logical should be included in search.

Return Value

Type Description
T First descendant of given type.