Example of data binding in the TagPicker control
- Last UpdatedNov 06, 2024
- 1 minute read
Install and embed the TagPicker control into a graphic as described in:
In this example, the Boolean graphic custom property HCV controls the visibility of the ActiveFactory TagPicker caption.
Do the following:
-
Create a Boolean custom property and rename it HCV.
-
In the Industrial Graphic Editor, double-click the embedded ActiveFactory TagPicker control.
-
From the list of properties in the Data Binding configuration area, locate the HideCaption property.
-
Double-click the Reference box of the HideCaption property.
-
In your HMI's attribute/tag browser, select the HCV custom property and click OK.
The HideCaption property is now assigned to the element reference HCV.
-
Click OK.
-
Place a button on the canvas and configure it with a Boolean pushbutton animation that toggles the custom property HCV.
-
Save and close the graphic.
-
Embed the graphic in a managed InTouch application and test the data binding by clicking on the button in WindowViewer. When you do so, the visibility of the caption of the TagPicker control is toggled.