Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 9
DatePicker is a class which provides a function that allows the user to select
a date through a scrolling motion by expressing the specified value as a list.
DatePicker expresses the current date using the locale information of the system.
Year range is 1970~2038 (glibc time_t struct min, max value)
public class DatePicker : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
-
- Implements
-
Constructors
View Source
DatePicker()
Creates a new instance of DatePicker.
Declaration
API Level: 9
View Source
DatePicker(String)
Creates a new instance of DatePicker.
Declaration
public DatePicker(string style)
Parameters
Type |
Name |
Description |
String |
style |
Creates DatePicker by special style defined in UX.
|
API Level: 9
View Source
DatePicker(DatePickerStyle)
Creates a new instance of DatePicker.
Declaration
public DatePicker(DatePickerStyle datePickerStyle)
Parameters
Type |
Name |
Description |
DatePickerStyle |
datePickerStyle |
Creates DatePicker by style customized by user.
|
API Level: 9
Fields
Declaration
public static readonly BindableProperty DateProperty
Field Value
Properties
Declaration
public DateTime Date { get; set; }
Property Value
Type |
Description |
DateTime |
|
API Level: 9
Methods
View Source
ApplyStyle(ViewStyle)
Apply style instance to the view.
Basically it sets the bindable property to the value of the bindable property with same name in the style.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Overrides
View Source
Dispose(DisposeTypes)
Dispose DatePicker and all children on it.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
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
public override View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled)
Parameters
Returns
Overrides
View Source
OnEnabled(Boolean)
Internal callback of enabled property changes.
Inherited view can override this method to implements enabled property changes.
Declaration
protected override void OnEnabled(bool enabled)
Parameters
Type |
Name |
Description |
Boolean |
enabled |
|
Overrides
View Source
OnInitialize()
Initialize TimePicker object.
Declaration
public override void OnInitialize()
Overrides
Events
View Source
DateChanged
An event emitted when DatePicker value changed, user can subscribe or unsubscribe to this event handler.
Declaration
public event EventHandler<DateChangedEventArgs> DateChanged
Event Type
API Level: 9
Implements
Extension Methods