TimePicker

TimePicker is a class that provides a function that allows the user to select a time through a scrolling motion by expressing the specified value as a list. TimePicker expresses the current time using the locale information of the system.

TimePicker

Add namespace

To implement TimePicker, include Tizen.NUI.Components and namespace in your application:

avrasm
Copy
xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"

Create with property

To create a TimePicker, follow these steps:

  1. Create TimePicker in XAML:

    groovy
    Copy
    <comp:TimePicker x:Name="picker"/>
  2. Set the TimePicker property:

    routeros
    Copy
    <comp:TimePicker x:Name="picker" isAm="False" is24HourView="True"/>

The following output is generated when the TimePicker is created using property:

TimePicker

Respond to value changed event

When you touch or pan a TimePicker, the TimePicker instance receives a value changed event. You can declare the value changed event handler as follows:

routeros
Copy
<comp:TimePicker x:Name="picker" ValueChanged="OnValueChanged"/>
C#
Copy
private void OnValueChanged(object sender, ValueChangedEventArgs args) { // Do something in response to TimePicker click }

Respond to time changed event

When you change time in TimePicker, the TimePicker instance receives a time changed event. You can declare the time changed event handler as follows:

routeros
Copy
<comp:TimePicker x:Name="picker" TimeChanged="OnTimeChanged"/>
C#
Copy
private void OnTimeChanged(object sender, TimeChangedEventArgs args) { // Do something in response to TimePicker click }
  • Dependencies
    • Tizen 6.5 and Higher
Tab
Next Layer
Submit your feedback to GitHub