Example 2
Let's look at another example that uses the Custom Properties and the Styles feature together. For example, the Label component seems pretty plain at first: it just displays a string. You can use its foreground color, background color, and border to make it look interesting.
- Drag a Label component onto a window.
- Rght click on the Label component and choose Custom Properties.
- Click the Add
icon. - Name the new property State and set it to an Integer type. Click OK.

- Bind that property to a discrete state Tag coming out of a PLC.
- Next use the State property to drive its Styles configuration to make the component look different and display different text based on the state being 0, 1, or 2 (maybe for a Hand/Off/Auto indicator).


We could have used the Multi-State Indicator component from the very beginning, but understanding this example will let you create your own types of components by combining the existing components in creative ways.
Some components like the Easy Chart, Table, Power Table, Tab Strip, Multi-State Button, and Multi-State Indicator have default styles already setup, but you can modify them however you like. If you don't like the default styles, change them. They are there to simply help you get started.
Value Conflict
You can bind a property that is already being used by a style, but a warning icon will appear on the property, and the property name turns red in the In the Property Editor. This means there is a conflict between the binding on the property, and the style on the component. As a general practice, only the style or binding should write to the property, not both.
