Skip to content

VStackExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for building VStack widgets. The callback returns Hex1bWidget[] using collection expressions. Covariance on Hex1bWidget allows mixing different widget types.

csharp
public static class VStackExtensions

Inheritance

ObjectVStackExtensions

Methods

VStack<TParent>(WidgetContext<TParent>, Func<WidgetContext<VStackWidget>, Hex1bWidget[]>)

Creates a VStack where the callback returns an array of children. Use collection expression syntax: v => [v.Text("a"), v.Button("b", e => {})]

Parameters:

Returns: VStackWidget

csharp
public static VStackWidget VStack<TParent>(this WidgetContext<TParent> ctx, Func<WidgetContext<VStackWidget>, Hex1bWidget[]> builder) where TParent : Hex1bWidget

Released under the MIT License.