VisualExtensions.

IsVisualAncestorOf(IVisual, IVisual) Method

Summary

Tests whether an IVisual is an ancestor of another visual.
Namespace
Avalonia.VisualTree
Containing Type
VisualExtensions

Syntax

public static bool IsVisualAncestorOf(this IVisual visual, IVisual target)

Parameters

Name Type Description
visual IVisual The visual.
target IVisual The potential descendant.

Return Value

Type Description
bool True if visual is an ancestor of target; otherwise false.