To apply a predefined style on a control a reference to the style must be added in the definition of the control. The reference is created with the MxStyle property as shown in the example below:
<TFT:Button MxStyle='{RejectButtonStyle}'/>
The MxStyle property in the button will create a reference to the “RejectButtonStyle” and the software will automatically apply all properties defined in the “RejectButtonStyle” in Section 8.2 to the button declared. This has the same effect as if the button had been declared like this:
<TFT:Button Name='RejectButton'
Location='25, 305'
Size='124,38'
BackColor='Red'
ForeColor='Black'
Click='OnReject'
Font='Arial, 14pt, style=Bold'/>
The main difference is that all adjustments of the properties are made in one style affecting all buttons that use this style, instead of adjusting all instances of RejectButton in the whole user interface file.