Class DatePicker

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)

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

Constructors

View Source

DatePicker()

Creates a new instance of DatePicker.

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

DatePicker(String)

Creates a new instance of DatePicker.

Declaration
C#
Copy
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
C#
Copy
public DatePicker(DatePickerStyle datePickerStyle)
Parameters
Type Name Description
DatePickerStyle datePickerStyle

Creates DatePicker by style customized by user.

API Level: 9

Fields

View Source

DateProperty

DateProperty

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

Properties

View Source

Date

The Date value of DatePicker.

Declaration
C#
Copy
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
C#
Copy
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type Name Description
ViewStyle viewStyle
Overrides
View Source

Dispose(DisposeTypes)

Dispose DatePicker 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

DateChanged

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

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

Implements

Extension Methods