ComponentOne DateTimeEditors for UWP
C1TimeEditor Help / C1TimeEditor Task-Based Help / Setting the Spin Interval
In This Topic
    Setting the Spin Interval
    In This Topic

    By default, the C1TimeEditor.Interval property is set to 33 milliseconds, which allows users to scroll through the time values at faster rates. In this topic, you will specify a longer interval between value changes by setting the C1TimeEditor.Interval property to 1000 milliseconds. For more information on spin intervals, visit the Spin Interval topic.

    In the Designer

    Complete the following steps:

    1. Click the C1TimeEditor control once to select it.
    2. In the Properties window, locate the C1TimeEditor.Interval property and enter "1000" into its text box.
    3. Run the project and then click and hold the increase time button . Observe that the value only increases once a second.

    In XAML

    Complete the following steps:

    1. Add Interval="1000" to the <my:C1TimeEditor>tag so that the markup resembles the following:
    Markup
    Copy Code
    <my:C1TimeEditor Interval="1000"/>
    
    1. Run the project and then click and hold the increase time button . Observe that the value only increases once a second.

    In Code

    Complete the following steps:

    1. Open the MainPage.xaml.cs page.
    1. Place the following code beneath the InitializeComponent() method:
    Visual Basic
    Copy Code
    C1TimeEditor1.Interval = 1000
    

    C#
    Copy Code
    C1TimeEditor1.Interval = 1000;
    
    1. Run the project and then click and hold the increase time button . Observe that the value only increases once a second.
    See Also