Skip to content

WindowPanelExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for creating .

csharp
public static class WindowPanelExtensions

Inheritance

ObjectWindowPanelExtensions

Methods

Background(WindowPanelWidget, Func<WidgetContext<Hex1bWidget>, Hex1bWidget>)

Sets a decorative background widget that renders behind all content and windows. The background does not receive focus or input.

Parameters:

Returns: WindowPanelWidget

A new WindowPanelWidget with the background configured.

csharp
public static WindowPanelWidget Background(this WindowPanelWidget widget, Func<WidgetContext<Hex1bWidget>, Hex1bWidget> backgroundBuilder)

Unbounded(WindowPanelWidget)

Allows windows to be dragged outside the panel bounds. Scrollbars appear when windows extend beyond the visible area.

Parameters:

Returns: WindowPanelWidget

A new WindowPanelWidget with AllowOutOfBounds enabled.

csharp
public static WindowPanelWidget Unbounded(this WindowPanelWidget widget)

WindowPanel<TParent>(WidgetContext<TParent>, string)

Creates a named WindowPanel that can host floating windows. Use named panels when you have multiple WindowPanels in your app.

Parameters:

  • ctx (WidgetContext<<TParent>>): The widget context.
  • name (String): The unique name for this panel.

Returns: WindowPanelWidget

A new WindowPanelWidget.

csharp
public static WindowPanelWidget WindowPanel<TParent>(this WidgetContext<TParent> ctx, string name) where TParent : Hex1bWidget

WindowPanel<TParent>(WidgetContext<TParent>)

Creates a WindowPanel that can host floating windows.

Parameters:

  • ctx (WidgetContext<<TParent>>): The widget context.

Returns: WindowPanelWidget

A new WindowPanelWidget.

csharp
public static WindowPanelWidget WindowPanel<TParent>(this WidgetContext<TParent> ctx) where TParent : Hex1bWidget

Released under the MIT License.