Provides details about the device and view needed for layout.

The window() function returns an object with reactive properties. "Window" is a common term that refers to the entire area the application is using on the device, which is not always the entire screen. - width (float): the width of the window - height (float): the height of the window - size (float2): the combined width and height of the window - safeMargins (float4): Margins needed on the content of the window to exclude it from all device UI and reserved areas. - staticMargins (float4): Like safeMargins but does not adjust for popup controls like the soft keyboard. - deviceMargins (float4): (Experimental) The margins the device reports as not being complete safe for drawing as something may obstruct the view (such as the rounded corners of an iPhone X)

Drawing anythng but a background (image or brush fill) in the gradient areas is not recommended as it may be obscured by the system UI or the hardware.

Refer to SafeEdgePanel and Safe Layout for more information about safe layouts and device margins.

Location

Namespace
Fuse.Reactive
Package
Fuse.Controls.Panels 2.9.1
Show Uno properties and methods

Interface of WindowFunction

Inherited from Expression

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces