Skip to content

PastableExtensions ​

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for building PastableWidget.

csharp
public static class PastableExtensions

Inheritance ​

Object → PastableExtensions

Methods ​

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

Creates a Pastable container with a VStack child.

Parameters:

Returns: PastableWidget

csharp
public static PastableWidget Pastable<TParent>(this WidgetContext<TParent> context, Func<WidgetContext<VStackWidget>, Hex1bWidget[]> builder) where TParent : Hex1bWidget

Pastable<TParent>(WidgetContext<TParent>, Hex1bWidget) ​

Creates a Pastable container wrapping a single child widget.

Parameters:

  • context (WidgetContext<<TParent>>):
  • child (Hex1bWidget):

Returns: PastableWidget

csharp
public static PastableWidget Pastable<TParent>(this WidgetContext<TParent> context, Hex1bWidget child) where TParent : Hex1bWidget

Released under the MIT License.