As we've already mentioned, a binding is basically made up of an expression that ties a Source and a Target control together. Typically, it evaluates the expression against certain properties of the Source control in order to assign the result to certain properties of the Target control. Let's start with a simple example. Here, we will try to tie the Text property of a TEdit instance to the Text property of a TButton instance.
Follow these steps in your IDE:
- Create a new, blank FMX application.
- Drop a TEdit and TButton component onto your form (we'll keep their default names of Edit1 and Button1).
- Drop a TBindingList component onto your form.
- Add a new binding expression to your binding list (double-click on the TBindingList component and click on the New binding button, the first on the left in the component editor toolbar).
- Find the TBindExpression entry in the list shown in the New LiveBinding dialog that appears...