Class TimePicker

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll
API Level:
9

TimePicker is a class which 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.

C#
Copy
public class TimePicker : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

TimePicker()

Creates a new instance of TimePicker.

Declaration
C#
Copy
public TimePicker()
API Level: 9
View Source

TimePicker(String)

Creates a new instance of TimePicker.

Declaration
C#
Copy
public TimePicker(string style)
Parameters
Type Name Description
String style

Creates TimePicker by special style defined in UX.

API Level: 9
View Source

TimePicker(TimePickerStyle)

Creates a new instance of TimePicker.

Declaration
C#
Copy
public TimePicker(TimePickerStyle timePickerStyle)
Parameters
Type Name Description
TimePickerStyle timePickerStyle

Creates TimePicker by style customized by user.

API Level: 9

Fields

View Source

Is24HourViewProperty

Is24HourViewProperty

Declaration
C#
Copy
public static readonly BindableProperty Is24HourViewProperty
Field Value
Type Description
BindableProperty
View Source

TimeProperty

TimeProperty

Declaration
C#
Copy
public static readonly BindableProperty TimeProperty
Field Value
Type Description
BindableProperty

Properties

View Source

Is24HourView

The is24hourview value of TimePicker.

Declaration
C#
Copy
public bool Is24HourView { get; set; }
Property Value
Type Description
Boolean
API Level: 9
View Source

Time

The hour value of TimePicker.

Declaration
C#
Copy
public DateTime Time { get; set; }
Property Value
Type Description
DateTime
API Level: 9

Methods

View Source

ApplyStyle(ViewStyle)

Applies style to TimePicker.

Declaration
C#
Copy
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type Name Description
ViewStyle viewStyle

The style to apply.

Overrides
View Source

Dispose(DisposeTypes)

Dispose TimePicker and all children on it.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type

Dispose type.

Overrides
View Source

GetNextFocusableView(View, View.FocusDirection, Boolean)

ToDo : only key navigation is enabled, and value editing is added as an very simple operation. by toggling enter key, it switches edit mode. ToDo : this should be fixed and changed properly by owner. (And UX SPEC should be referenced also)

Declaration
C#
Copy
public override View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled)
Parameters
Type Name Description
View currentFocusedView
View.FocusDirection direction
Boolean loopEnabled
Returns
Type Description
View
Overrides
View Source

OnEnabled(Boolean)

Internal callback of enabled property changes. Inherited view can override this method to implements enabled property changes.

Declaration
C#
Copy
protected override void OnEnabled(bool enabled)
Parameters
Type Name Description
Boolean enabled
Overrides
View Source

OnInitialize()

Initialize TimePicker object.

Declaration
C#
Copy
public override void OnInitialize()
Overrides

Events

View Source

TimeChanged

An event emitted when TimePicker value changed, user can subscribe or unsubscribe to this event handler.

Declaration
C#
Copy
public event EventHandler<TimeChangedEventArgs> TimeChanged
Event Type
Type Description
EventHandler<TimeChangedEventArgs>
API Level: 9

Implements

Extension Methods