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
ownerControlIWindowControlThe control creating the portal.
portalContentIWindowControlThe 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
ownerControlIWindowControlThe control that owns the portal.
portalNodeLayoutNodeThe portal LayoutNode returned by CreatePortal.