VisualExtensionsCalculateDistanceFromRoot Method

Calculates the distance from a visual's root.

Definition

Namespace: Avalonia.VisualTree
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static int CalculateDistanceFromRoot(
	Visual visual
)

Parameters

visual  Visual
The visual.

Return Value

Int32
The number of steps from the visual to the root.

See Also