Summary
Gets an existing layer or creates a new one if no existing layer is found.
- Namespace
- Avalonia
.Rendering .SceneGraph - Containing Type
- SceneLayers
Syntax
public SceneLayer GetOrAdd(IVisual layerRoot)
Parameters
Name | Type | Description |
---|---|---|
layerRoot | IVisual | The root visual. |
Return Value
Type | Description |
---|---|
SceneLayer | The layer. |