public sealed record RunicHostedRegionOptions : IEquatable<RunicHostedRegionOptions> How a region shows a guest's window (RunicHostedWindowDecision.Embed).
Remarks
Experimental; see docs/experimental.md.
Constructors
RunicHostedRegionOptions
public RunicHostedRegionOptions() No documentation.
Properties
Appearance
public RunicHostedAppearance? Appearance { get; init; } The appearance override of the region's window from its open (region-appearance/1), such as the design a wizard's user picked; null, the default, for none. RunicHostedRegion.SetAppearanceAsync changes it later. A guest that does not apply overrides (RunicHostedWindowRequest.CanOverrideAppearance) still shows in the region, with the desktop's appearance, and the host logs a warning once for the window.
FocusOnAttach
public bool FocusOnAttach { get; init; } Whether the host page moves the keyboard focus into the region when it attaches, such as for a wizard step that consists of the region; false by default. The page moves it only when it holds no focus of its own, and the focus counts as the host's, not the user's, for the guest's window services.
MaximumHeight
public int? MaximumHeight { get; init; } The greatest height, in CSS pixels, of a region whose page declares sizing="content-height"; 32,767 by default.
Exceptions
ArgumentOutOfRangeExceptionThe value is not from 0 to 32,767.
MinimumHeight
public int? MinimumHeight { get; init; } The least height, in CSS pixels, of a region whose page declares sizing="content-height"; 0 by default.
Exceptions
ArgumentOutOfRangeExceptionThe value is not from 0 to 32,767.
Permissions
public DesktopPermissionGrant? Permissions { get; init; } The permissions of the region's frame, or null, the default, for those the guest's page asks for that the host grants its own windows (RunicHostedWindowRequest.WindowOptions), as a window of its own gets them. DesktopPermissionGrant.MediaCapture allows the camera and the microphone.
ReattachOnReload
public bool ReattachOnReload { get; init; } Whether the window attaches again when a region of the same name appears again in the host window that showed it, as after its page reloaded or navigated back; true by default. Without it, a window its page detached stays detached until RunicHostedRegion.MoveToAsync.