Step 4 of 4: Setting TileControl’s Property Mappings
In This Topic
In this step you will create a PropertyMapping member to bind the ProductName and the ProductName’s text to the C1TileControl.
-
Select the C1TileControl and expand the Data node in the C1TileControl’s property window.
-
In the C1TileControl’s Properties window click on the ellipsis button next to the PropertyMappings property. The PropertyMapping Collection Editor appears.
-
Click Add. A C1.Win.C1Tile.PropertyMapping item will appear like the following.
-
Click Add and set the [0] [*] -> [None] properties to the following:
- PropertyMapping.DataField to ProductName
This will bind the product name to each tile.
This will bind the ProductName to the Text property of the C1TileControl.
Run the project and observe
Press F4 to run the project and notice that the ProductName’s Text is bound to each tile in the C1TileControl.