Class TimePicker

    Definition

    Namespace:
    Tizen.NUI.Components
    Assembly:
    Tizen.NUI.Components.dll

    TimePicker is a class which provides a function that allows the user to select a time through a scrolling motion by expressing the specified value as a list. TimePicker expresses the current time using the locale information of the system.

    public class TimePicker : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    ViewWrapper
    CustomView
    VisualView
    Control
    TimePicker
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    TimePicker()

    Creates a new instance of TimePicker.

    Declaration
    public TimePicker()
    View Source

    TimePicker(string)

    Creates a new instance of TimePicker.

    Declaration
    public TimePicker(string style)
    Parameters
    Type Name Description
    string style

    Creates TimePicker by special style defined in UX.

    View Source

    TimePicker(TimePickerStyle)

    Creates a new instance of TimePicker.

    Declaration
    public TimePicker(TimePickerStyle timePickerStyle)
    Parameters
    Type Name Description
    TimePickerStyle timePickerStyle

    Creates TimePicker by style customized by user.

    Fields

    View Source

    Is24HourViewProperty

    Is24HourViewProperty

    Declaration
    public static readonly BindableProperty Is24HourViewProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    TimeProperty

    TimeProperty

    Declaration
    public static readonly BindableProperty TimeProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    Is24HourView

    The is24hourview value of TimePicker.

    Declaration
    public bool Is24HourView { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Time

    The hour value of TimePicker.

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

    Methods

    View Source

    ApplyStyle(ViewStyle)

    Applies style to TimePicker.

    Declaration
    public override void ApplyStyle(ViewStyle viewStyle)
    Parameters
    Type Name Description
    ViewStyle viewStyle

    The style to apply.

    Overrides
    View.ApplyStyle(ViewStyle)
    View Source

    Dispose(DisposeTypes)

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

    TimeChanged

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

    Declaration
    public event EventHandler<TimeChangedEventArgs> TimeChanged
    Event Type
    Type Description
    EventHandler<><TimeChangedEventArgs>

    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