Basic Library for WPF
手順 1:アプリケーションの作成
製品の概要 > ComboBox > クイックスタート > 手順 1:アプリケーションの作成

In this step, you'll create an 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 either Windows Desktop from the Templates in the left-hand pane.
    New Project Dialog Box

    New Project Dialog Box

  3. Select WPF Application Application, depending on the template you chose. 
  4. Enter a Name for your project, for example "QuickStart", and click OK. In a WPF Application, the MainWindow.xaml file will open.
  5. Add the following assemblies to your application by right-clicking the References folder and selecting Add Reference:
    • C1.WPF.4.6.2.dll
  6. In the Visual Studio Toolbox, locate the StackPanel control and double-click to add it to your page. Edit the StackPanel's properties to reflect the following:
    • Width = "300"
    • Height = "35"
    • Orientation = Horizontal
  7. Locate the ComboBox control in the Toolbox and add two controls to the StackPanel by double-clicking the control. These two controls will be named, by default, combobox1 and combobox2.
  8. Edit combobox1's properties to reflect the following:
    • Width = "150"
    • Height = "35"
    • Name = "Category"
  9. Edit combobox2's properties to reflect the following:
    • Width = "150"
    • Height = "35"
    • Name = "Shows"

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.