Step 4 of 5: Adding Code to the Project

In the last step, you added four items to the C1CoverFlow control and set the items’ properties. In this step, you’re going to create a SelectedIndexChanged event handler and add code to the event handler that checks for the value of the SelectedIndex property. The TextBlock control, which you added in Step 1 of 5: Creating the Project, will change its Text property string value when the user selects an album cover.

Complete the following steps:

1.   In the Objects and Timeline panel, select C1CoverFlow1.

2.   In the Properties panel, click the Events button .

3.   Locate the SelectedIndexChanged event handler and double-click inside its text box.

The C1CoverFlow1_SelectedIndexChanged event handler is added to your project.

4.   Replace the code comment with the following code:

      Visual Basic

      C#

In this step, you added an event handler and code to your project. In the next step, you’ll run program and see the results of this quick start topic.


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