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
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    ViewWrapper
    CustomView
    VisualView
    Control
    DatePicker
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    DatePicker()

    Creates a new instance of DatePicker.

    Declaration
    public DatePicker()
    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.

    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.

    Fields

    View Source

    DateProperty

    DateProperty

    Declaration
    public static readonly BindableProperty DateProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    Date

    The Date value of DatePicker.

    Declaration
    public DateTime Date { get; set; }
    Property Value
    Type Description
    DateTime

    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
    Type Name Description
    ViewStyle viewStyle
    Overrides
    View.ApplyStyle(ViewStyle)
    View Source

    Dispose(DisposeTypes)

    Dispose DatePicker and all children on it.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type

    Dispose type.

    Overrides
    Control.Dispose(DisposeTypes)
    View Source

    GetNextFocusableView(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
    CustomView.GetNextFocusableView(View, View.FocusDirection, bool)
    View Source

    OnEnabled(bool)

    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
    bool enabled
    Overrides
    View.OnEnabled(bool)
    View Source

    OnInitialize()

    Initialize TimePicker object.

    Declaration
    public override void OnInitialize()
    Overrides
    Control.OnInitialize()

    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
    Type Description
    EventHandler<><DateChangedEventArgs>

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX