Class DateTimeSelector

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll

    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.

    [Obsolete("This has been deprecated in API12")]
    public class DateTimeSelector : Layout, IAccessibleObject
    Inheritance
    object
    EvasObject
    AccessibleObject
    Widget
    Container
    Layout
    DateTimeSelector
    Derived
    CircleDateTimeSelector
    CircleDateTimeSelector
    Implements
    IAccessibleObject

    Constructors

    View Source

    DateTimeSelector()

    Creates and initializes a new instance of the DateTimeSelector class.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    protected DateTimeSelector()
    View Source

    DateTimeSelector(EvasObject)

    Creates and initializes a new instance of the DateTimeSelector class.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    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.

    Properties

    View Source

    DateTime

    Gets or sets the current value of the DateTime field.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public DateTime DateTime { get; set; }
    Property Value
    Type Description
    System.DateTime
    View Source

    Format

    Gets or sets the datetime format.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public string Format { get; set; }
    Property Value
    Type Description
    string
    Remarks

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

    View Source

    MaximumDateTime

    Gets or sets the upper boundary of the DateTime field.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public DateTime MaximumDateTime { get; set; }
    Property Value
    Type Description
    System.DateTime
    View Source

    MinimumDateTime

    Gets or sets the lower boundary of the DateTime field.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public DateTime MinimumDateTime { get; set; }
    Property Value
    Type Description
    System.DateTime

    Methods

    View Source

    CreateHandle(EvasObject)

    Creates a widget handle.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    protected override IntPtr CreateHandle(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent

    Parent EvasObject.

    Returns
    Type Description
    System.IntPtr

    Handle IntPtr.

    Overrides
    Layout.CreateHandle(EvasObject)
    View Source

    IsFieldVisible(DateTimeFieldType)

    Gets whether a field can be visible.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public bool IsFieldVisible(DateTimeFieldType type)
    Parameters
    Type Name Description
    DateTimeFieldType type

    Enumeration for DateTimeFieldType.

    Returns
    Type Description
    bool

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

    View Source

    OnRealized()

    The callback of the Realized event.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    protected override void OnRealized()
    Overrides
    Layout.OnRealized()
    View Source

    SetFieldLimit(DateTimeFieldType, int, int)

    Sets the field limits of a field.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public void SetFieldLimit(DateTimeFieldType type, int minimum, int maximum)
    Parameters
    Type Name Description
    DateTimeFieldType type

    Enumeration for DateTimeFieldType.

    int minimum

    The minimum limit.

    int maximum

    The maximum limit.

    View Source

    SetFieldVisible(DateTimeFieldType, bool)

    Gets whether a field can be visible.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public void SetFieldVisible(DateTimeFieldType type, bool visible)
    Parameters
    Type Name Description
    DateTimeFieldType type

    Enumeration for DateTimeFieldType.

    bool visible

    When set as true, the field type is visible.

    Events

    View Source

    DateTimeChanged

    ItemSelected is raised when the DateTime field value is changed.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public event EventHandler<DateChangedEventArgs> DateTimeChanged
    Event Type
    Type Description
    System.EventHandler<TEventArgs><DateChangedEventArgs>

    Implements

    IAccessibleObject

    Extension Methods

    RotaryEventExtensions.Activate(EvasObject)
    RotaryEventExtensions.AddRotaryEventHandler(EvasObject, RotaryEventHandler)
    RotaryEventExtensions.Deactivate(EvasObject)
    RotaryEventExtensions.RemoveRotaryEventHandler(EvasObject, RotaryEventHandler)
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX