Forces conversion to a Size or Size2 depending on input size.

This is useful when using operators that may not be able to infer the desired types. For example:

    exports.jsArray = [0.2, 0.4]
<Panel Offset="size({jsArray}) * 100%"/>

This function follows the conversion rules as though the operand was being converted directly to a Size or Size2 property type. If the input is a float2, array, or already a Size2, then it will be converted to a Size2, otherwise a Size type.


Fuse.Reactive.Expressions 1.11.2

Interface of ToSize

Inherited from UnaryOperator

Inherited from ComputeExpression

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