Step 1 of 4: Creating an Application with a C1ComboBox Control

In this step, you'll begin in Visual Studio  to create a WPF application using ComboBox for WPF.

Complete the following steps:

1.   In Visual Studio, select File | New | Project.

2.   In the New Project dialog box, select a language in the left pane, and in the templates list select WPF Application.

3.   Enter a Name for your project and click OK.

4.   Add two C1ComboBox controls to the project by completing the following steps:

a.   In the Toolbox, double-click the StackPanel icon to add it to the project.

b.   Select the StackPanel control.

c.    Double-click the C1ComboBox icon to add the control to the StackPanel.

d.   Repeat steps 4b and 4c to add another C1ComboBox to the StackPanel. The project resembles the following:

 

 

 

5.   Set the StackPanel control’s properties as follows:

      Set the Width property to "300".

      Set the Height property to "35".

      Set the Orientation property to Horizontal.

6.   Set c1ComboBox1’s properties as follows:

      Set the Width property to "150".

      Set the Height property to "35".

      Set the Name property to “Category”

7.   Set c1ComboBox2’s properties as follows:

      Set the Width property to "150".

      Set the Height property to "35".

      Set the Name property to “Shows”.

The project resembles the following:

 

 

You have completed the first step of the quick start by creating a WPF project and adding two C1ComboBox controls to it. In the next step, you'll add items to the first C1ComboBox control.


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