Step 4 of 4: Running the Project

In the previous three steps, you created a WPF project with two combo boxes, added items to the first combo box, and wrote code that will populate the second combo box with items once an item is selected in the first combo box. In this step, you will run the project and observe the results of this quick start.

Complete the following steps:

1.   Press F5 to run the project. The project loads with two blank combo boxes:

 

 

2.   Click the second combo box's drop-down arrow and observe that the drop-down list is empty:

 

 

3.   Click the first combo box's drop-down arrow and select Comedy.

4.   Click the second combo box's drop-down arrow and observe that the drop-down list features the following items:

 

 

5.   Click the first combo box's drop-down arrow and select Drama.

6.   Click the second combo box's drop-down arrow and observe that the drop-down list features the following items:

 

 

7.   Click the first combo box's drop-down arrow and select Science Fiction.

8.   Click the second combo box's drop-down arrow and observe that the drop-down list features the following items:

 

 

Congratulations! You have completed the ComboBox for WPF quick start.


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