WindowPanelExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for creating .
public static class WindowPanelExtensionsInheritance
Object → WindowPanelExtensions
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:
widget(WindowPanelWidget): The WindowPanelWidget to configure.backgroundBuilder(Func<Hex1bWidget>, Hex1bWidget>): A function that builds the background widget using a context.
Returns: WindowPanelWidget
A new WindowPanelWidget with the background configured.
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:
widget(WindowPanelWidget): The WindowPanelWidget to configure.
Returns: WindowPanelWidget
A new WindowPanelWidget with AllowOutOfBounds enabled.
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.
public static WindowPanelWidget WindowPanel<TParent>(this WidgetContext<TParent> ctx, string name) where TParent : Hex1bWidgetWindowPanel<TParent>(WidgetContext<TParent>)
Creates a WindowPanel that can host floating windows.
Parameters:
ctx(WidgetContext<<TParent>>): The widget context.
Returns: WindowPanelWidget
A new WindowPanelWidget.
public static WindowPanelWidget WindowPanel<TParent>(this WidgetContext<TParent> ctx) where TParent : Hex1bWidget