SceneLayers.

Exists(IVisual) Method

Summary

Tests whether a layer exists with the specified root visual.
Namespace
Avalonia.Rendering.SceneGraph
Containing Type
SceneLayers

Syntax

public bool Exists(IVisual layerRoot)

Parameters

Name Type Description
layerRoot IVisual The root visual.

Return Value

Type Description
bool True if a layer exists with the specified root visual, otherwise false.