VisualExtensions.

FindCommonVisualAncestor(IVisual, IVisual) Method

Summary

Tries to get the first common ancestor of two visuals.
Namespace
Avalonia.VisualTree
Containing Type
VisualExtensions

Syntax

public static IVisual FindCommonVisualAncestor(this IVisual visual, IVisual target)

Parameters

Name Type Description
visual IVisual The first visual.
target IVisual The second visual.

Return Value

Type Description
IVisual The common ancestor, or null if not found.