The following quick start guide is intended to get you up and running with the C1TimeEditor control. In this quick start, you'll start in Visual Studio to create a new project, add a C1TimeEditor control to your application, and customize the C1TimeEditor control.
Create an Application with TimeEditor control
- In Visual Studio, select File | New | Project.
- In the New Project dialog box, select WPF Application.
- Enter a Name and Location for your project and click OK to create the new application.
- In the Toolbox, double-click the C1TimeEditor icon to add the C1TimeEditor control to the WPF application.
You have completed the first step of the C1TimeEditor quick start. In this step, you created a project and added a C1TimeEditor control to it. In the next step, you'll customize the control.
Customize the TimeEditor control
To customize the C1TimeEditor control, set the following properties from the Properties window:
- Set the property to ShortTime. This will change the time format of the control so that it shows only hours and minutes.
- Set the property to "01:00:00". This will cause the value of the control to change by one hour each time a user clicks the spin button.
- Set the property to "1000". This will cause the control to hesitate for one second before changing the value of the control.
- Set the property to "17:00:00".
Now that you've customized the application, you can run the project and observe the run time behaviors of the control.
Run the Application
- Press F5 (or Project | Run in Blend) to run the project. Observe that it loads with a time value of 5:00 p.m. and that the control only shows hours and minutes.

- Click the decrease time button
and observe that time value decreases by one hour to 4:00 p.m.

- Click and hold the increase time button so that the control will spin through values. Observe that the control waits one second between value changes.
Congratulations – you have completed the quick start. Now that you have finished the quick start, we recommend that you visit the Working with C1TimeEditor or C1TimeEditor Task-Based Help topics.