LogicalExtensions.

GetLogicalParent<T>(ILogical) Method

Summary

Gets the logical parent of an ILogical.
Namespace
Avalonia.LogicalTree
Containing Type
LogicalExtensions

Syntax

public static T GetLogicalParent<T>(this ILogical logical) where T : class

Type Parameters

Name Description
T The type of the logical parent.

Parameters

Name Type Description
logical ILogical The logical.

Return Value

Type Description
T The parent, or null if the logical is unparented or its parent is not of type T.