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 VStackExtensionsInheritance
Object → VStackExtensions
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:
ctx(WidgetContext<<TParent>>):builder(Func<VStackWidget>, Hex1bWidget[]>):
Returns: VStackWidget
csharp
public static VStackWidget VStack<TParent>(this WidgetContext<TParent> ctx, Func<WidgetContext<VStackWidget>, Hex1bWidget[]> builder) where TParent : Hex1bWidget