A2v10 Platform documentation
UK


Length Element

Sets length. Specified as a number with optional units of measurement, or as multiple literal values. The units of measure correspond to the units in css.

Measurement units

Unit Description
% Percents.
px Pixels (1px = 1/96in). This is the value by default and is used if no measurement unit is specified.
mm Millimeters.
cm Centimeters.
pt Points (1pt = 1/72in).
in Inches (1in = 2.54cm).
ch Characters (using the "0" character width).
em The width of the "m" character in the current font.
rem The width of the "m" character of the root element (the one specified in the <html>) tag.
ex The x-height in the current font.
vh 1% of the window height (viewport).
vw 1% of the window width (viewport).
vmin Lesser of vh, vw.
vmin Greater of vh, vw.

Literal values

Value Description
Auto Automatically. Corresponds to auto css.
Fit The minimum content value. Corresponds to fit-content css value.

Example

XAML