Class TimePicker
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
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.
public class TimePicker : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectTimePicker
- Implements
-
System.IDisposable
Constructors
View SourceTimePicker()
Creates a new instance of TimePicker.
Declaration
public TimePicker()
TimePicker(string)
Creates a new instance of TimePicker.
Declaration
public TimePicker(string style)
Parameters
Type | Name | Description |
---|---|---|
string | style | Creates TimePicker by special style defined in UX. |
TimePicker(TimePickerStyle)
Creates a new instance of TimePicker.
Declaration
public TimePicker(TimePickerStyle timePickerStyle)
Parameters
Type | Name | Description |
---|---|---|
TimePickerStyle | timePickerStyle | Creates TimePicker by style customized by user. |
Fields
View SourceIs24HourViewProperty
Is24HourViewProperty
Declaration
public static readonly BindableProperty Is24HourViewProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TimeProperty
TimeProperty
Declaration
public static readonly BindableProperty TimeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
View SourceIs24HourView
The is24hourview value of TimePicker.
Declaration
public bool Is24HourView { get; set; }
Property Value
Type | Description |
---|---|
bool |
Time
The hour value of TimePicker.
Declaration
public DateTime Time { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Methods
View SourceApplyStyle(ViewStyle)
Applies style to TimePicker.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type | Name | Description |
---|---|---|
ViewStyle | viewStyle | The style to apply. |
Overrides
View SourceDispose(DisposeTypes)
Dispose TimePicker and all children on it.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | Dispose type. |
Overrides
View SourceGetNextFocusableView(View, FocusDirection, bool)
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
public override View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled)
Parameters
Type | Name | Description |
---|---|---|
View | currentFocusedView | |
View.FocusDirection | direction | |
bool | loopEnabled |
Returns
Type | Description |
---|---|
View |
Overrides
View SourceOnEnabled(bool)
Declaration
protected override void OnEnabled(bool enabled)
Parameters
Type | Name | Description |
---|---|---|
bool | enabled |
Overrides
View SourceOnInitialize()
Initialize TimePicker object.
Declaration
public override void OnInitialize()
Overrides
Events
View SourceTimeChanged
An event emitted when TimePicker value changed, user can subscribe or unsubscribe to this event handler.
Declaration
public event EventHandler<TimeChangedEventArgs> TimeChanged
Event Type
Type | Description |
---|---|
EventHandler<><TimeChangedEventArgs> |