Table of Contents

Property WrapElement

Namespace
Velvet
Assembly
Velvet.Docs.dll

WrapElement

Function that wraps the element with a wrapper container. Input: the created VisualElement → output: the wrapper VisualElement. The Reconciler places the wrapper in the DOM and tracks the inner real element in a dictionary for patching. Primary use case: wrapping a button with a DropShadow container.

public Func<VisualElement, VisualElement>? WrapElement { get; init; }

Property Value

Func<VisualElement, VisualElement>