Class DatePicker
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
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, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectDatePicker
- Implements
-
System.IDisposable
Constructors
View SourceDatePicker()
Creates a new instance of DatePicker.
Declaration
public DatePicker()
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. |
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. |
Fields
View SourceDateProperty
DateProperty
Declaration
public static readonly BindableProperty DateProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
View SourceDate
The Date value of DatePicker.
Declaration
public DateTime Date { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Methods
View SourceApplyStyle(ViewStyle)
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type | Name | Description |
---|---|---|
ViewStyle | viewStyle |
Overrides
View SourceDispose(DisposeTypes)
Dispose DatePicker 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 SourceDateChanged
An event emitted when DatePicker value changed, user can subscribe or unsubscribe to this event handler.
Declaration
public event EventHandler<DateChangedEventArgs> DateChanged
Event Type
Type | Description |
---|---|
EventHandler<><DateChangedEventArgs> |