Step 2 of 3: Adding Data to the TileListBox

In the last step, you added the C1TileListBox control to the application. In this step, you will add code to bind the control to data.

Complete the following steps to add data to the control programmatically:

1.   Right-click the page and select View Code to open the Code Editor.

2.   Add the following imports statements to the top of the page:

      Visual Basic

      C#

3.   Add the following code inside the initial event handler within the MainPage class:

      Visual Basic

      C#

4.   Add the following code below the initial event handler butwithin the MainPage class:

      Visual Basic

      C#

The code above binds the C1TileListBox to a list of numbers.

5.   Add the following code just below the MainPage class:

      Visual Basic

      C#

What You've Accomplished

You have successfully added data to C1TileTileListBox. In the next step, Step 3 of 3: Running the TileListBox Application, you'll examine the TileListBox for Windows Phone features.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.