VisualExtensions.

GetVisualRoot(IVisual) Method

Summary

Gets the root visual for an IVisual.
Namespace
Avalonia.VisualTree
Containing Type
VisualExtensions

Syntax

public static IRenderRoot GetVisualRoot(this IVisual visual)

Parameters

Name Type Description
visual IVisual The visual.

Return Value

Type Description
IRenderRoot The root visual or null if the visual is not rooted.