Class DateTimeSelector

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll
API Level:
preview

It inherits Layout. The DateTimeSelector is a widget to display and input the date & time values. This widget displays the date and time as per the system's locale settings (Date includes Day, Month & Year) along with the defined separators and time including hour, minute & AM/PM fields. Separator for the AM/PM field is ignored.

C#
Copy
public class DateTimeSelector : Layout, IAccessibleObject
Inheritance
System.Object
DateTimeSelector
Derived
Implements

Constructors

View Source

DateTimeSelector()

Creates and initializes a new instance of the DateTimeSelector class.

Declaration
C#
Copy
protected DateTimeSelector()
API Level: preview
View Source

DateTimeSelector(EvasObject)

Creates and initializes a new instance of the DateTimeSelector class.

Declaration
C#
Copy
public DateTimeSelector(EvasObject parent)
Parameters
Type Name Description
EvasObject parent

The parent is a given container, which will be attached by the DateTimeSelector as a child. It's EvasObject type.

API Level: preview

Properties

View Source

DateTime

Gets or sets the current value of the DateTime field.

Declaration
C#
Copy
public DateTime DateTime { get; set; }
Property Value
Type Description
System.DateTime
API Level: preview
View Source

Format

Gets or sets the datetime format.

Declaration
C#
Copy
public string Format { get; set; }
Property Value
Type Description
System.String
Remarks

Format is a combination of the allowed LIBC date format specifiers like: "%b %d, %Y %I : %M %p".

API Level: preview
View Source

MaximumDateTime

Gets or sets the upper boundary of the DateTime field.

Declaration
C#
Copy
public DateTime MaximumDateTime { get; set; }
Property Value
Type Description
System.DateTime
API Level: preview
View Source

MinimumDateTime

Gets or sets the lower boundary of the DateTime field.

Declaration
C#
Copy
public DateTime MinimumDateTime { get; set; }
Property Value
Type Description
System.DateTime
API Level: preview

Methods

View Source

CreateHandle(EvasObject)

Creates a widget handle.

Declaration
C#
Copy
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type Name Description
EvasObject parent

Parent EvasObject.

Returns
Type Description
System.IntPtr

Handle IntPtr.

Overrides
API Level: preview
View Source

IsFieldVisible(DateTimeFieldType)

Gets whether a field can be visible.

Declaration
C#
Copy
public bool IsFieldVisible(DateTimeFieldType type)
Parameters
Type Name Description
DateTimeFieldType type

Enumeration for DateTimeFieldType.

Returns
Type Description
Boolean

The field is visible or not. Type is bool. If visible, return true.

API Level: preview
View Source

OnRealized()

The callback of the Realized event.

Declaration
C#
Copy
protected override void OnRealized()
Overrides
API Level: preview
View Source

SetFieldLimit(DateTimeFieldType, Int32, Int32)

Sets the field limits of a field.

Declaration
C#
Copy
public void SetFieldLimit(DateTimeFieldType type, int minimum, int maximum)
Parameters
Type Name Description
DateTimeFieldType type

Enumeration for DateTimeFieldType.

Int32 minimum

The minimum limit.

Int32 maximum

The maximum limit.

API Level: preview
View Source

SetFieldVisible(DateTimeFieldType, Boolean)

Gets whether a field can be visible.

Declaration
C#
Copy
public void SetFieldVisible(DateTimeFieldType type, bool visible)
Parameters
Type Name Description
DateTimeFieldType type

Enumeration for DateTimeFieldType.

Boolean visible

When set as true, the field type is visible.

API Level: preview

Events

View Source

DateTimeChanged

ItemSelected is raised when the DateTime field value is changed.

Declaration
C#
Copy
public event EventHandler<DateChangedEventArgs> DateTimeChanged
Event Type
Type Description
System.EventHandler<DateChangedEventArgs>
API Level: preview

Implements

Extension Methods