IWindowSizeLimits interface
Runtime resize limits for a Resizable window — the switch behind MinWidth/MinHeight/MaxWidth/MaxHeight, for a window whose allowed size depends on what it currently shows (e.g. a meter whose list view resizes freely but whose party view has a fixed, computed height). Every IWindowControl the framework returns also implements this interface (separate because IWindowControl is at the 8-member interface cap). Call it through WindowSizeLimitsExtensions: control.SetSizeLimits(minW, minH, maxW, maxH).
Lock an axis by passing min == max for it (the resize grip then only changes the other axis). The limits hold for the grip (normal and layout-edit mode), every SetRect and every saved-layout restore, and survive hide/show and remounts. A live size outside the new limits is clamped AT ONCE, size only: the window’s top-left never moves. A content minimum (RowElement.ConstrainsWindowMinWidth) still raises the minimum width. No-op on a non-resizable window. Cheap; call it only when the limits change, not per tick. Added in 2.33.0 — a plugin that calls it needs framework ≥ 2.33.0.
public interface IWindowSizeLimitsMembers
Section titled “Members”| name | description |
|---|---|
| SetSizeLimits(…) | Replace the window’s resize limits (canvas units, like MinWidth). A max below its min is raised to the min. Safe before the window is first shown (applied when it mounts). |
See Also
Section titled “See Also”- namespace Stellar.Abstractions.Services