Table of Contents

Interface IHasPortalBounds

Namespace
SharpConsoleUI.Layout
Assembly
SharpConsoleUI.dll

Implemented by portal content controls that need custom absolute positioning. When Window.CreatePortal() receives a content that implements this interface, it uses GetPortalBounds() to position the overlay instead of defaulting to (0,0).

public interface IHasPortalBounds
Extension Methods

Properties

DismissOnOutsideClick

When true, the portal is automatically dismissed when the user clicks outside its bounds.

bool DismissOnOutsideClick { get; }

Property Value

bool

Methods

GetPortalBounds()

Returns the absolute position and size (window-relative coordinates) where this portal overlay should be rendered.

Rectangle GetPortalBounds()

Returns

Rectangle