You can specify the current time of a C1TimeEditor control by setting the C1TimeEditor.Value property in the designer, in XAML, and in code.
In the Designer
Complete the following steps:
In XAML
To specify the current time, place Value="07:00:00" to the <my:C1TimeEditor> tag so that the markup resembles the following:
<my:C1TimeEditor Value="07:00:00"/>
The control reflects a time of 7:00:00 a.m.
In Code
Complete the following steps:
Visual Basic |
Copy Code
|
---|---|
C1TimeEditor1.Value = New TimeSpan(7, 0, 0)
|
C# |
Copy Code
|
---|---|
c1TimeEditor1.Value = new TimeSpan(7,0,0);
|
This Topic Illustrates the Following:
By following the steps in this topic, you have changed the time on the C1TimeEditor control to 7:00:00 a.m. The result will resemble the following: