ComponentOne DateTimeEditors for WPF: DateTimeEditors for WPF Quick Starts > C1TimeEditor Quick Start > Step 2 of 3: Customizing the Control

Step 2 of 3: Customizing the Control

In this step, you will customize the C1TimeEditor control using both Blend and code.

Select the C1TimeEditor control and then, in Properties window, set the following properties:

      Set the Format property to ShortTime. This will change the time format of the control so that it shows only hours and minutes.

      Set the Increment 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 Interval property to "1000". This will cause the control to hesitate for one second before changing the value of the control. 

      Set the Value 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. 


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.