Table of Contents

Interface IPortalHost

Namespace
SharpConsoleUI.Controls
Assembly
SharpConsoleUI.dll

Interface for containers that can host portals (Window and DesktopPortal). Portals are overlay LayoutNodes that render on top of normal content.

public interface IPortalHost
Extension Methods

Methods

CreatePortal(IWindowControl, IWindowControl)

Creates a portal overlay for the specified control.

LayoutNode? CreatePortal(IWindowControl ownerControl, IWindowControl portalContent)

Parameters

ownerControl IWindowControl

The control creating the portal.

portalContent IWindowControl

The content to render as an overlay.

Returns

LayoutNode

The portal LayoutNode for later removal, or null if creation failed.

RemovePortal(IWindowControl, LayoutNode)

Removes a portal overlay.

void RemovePortal(IWindowControl ownerControl, LayoutNode portalNode)

Parameters

ownerControl IWindowControl

The control that owns the portal.

portalNode LayoutNode

The portal LayoutNode returned by CreatePortal.