Ui XML Reference\Constant

Defines a constant value that can be used in attributes. Constants do not require binding and are referenced by prefixing a '@' to their name.

Example Usage

<Frame layout="flex" frameImage="frame01_blue" >
    <Constant name="image" value="cart" />
    <Frame frameImage="@image" height="200" width="200" />
</Frame>

This XML produces the following UI:
image

This frame doesn't support common attributes.

name

Value type: string

Description


The name of the constant.

Example Usage

<Frame layout="flex" frameImage="frame01_blue" >
    <Constant name="image" value="cart" />
    <Frame frameImage="@image" height="200" width="200" />
</Frame>

value

Value type: string

Description


The value of the constant.

Example Usage

<Frame layout="flex" frameImage="frame01_blue" >
    <Constant name="image" value="cart" />
    <Frame frameImage="@image" height="200" width="200" />
</Frame>