Class Picker

    Definition

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

    Picker is a class which provides a function that allows the user to select a value through a scrolling motion by expressing the specified value as a list. It is recommended to use when selecting less than 100 selections.

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

    Constructors

    View Source

    Picker()

    Creates a new instance of Picker.

    Declaration
    public Picker()
    View Source

    Picker(string)

    Creates a new instance of Picker.

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

    Creates Picker by special style defined in UX.

    View Source

    Picker(PickerStyle)

    Creates a new instance of Picker.

    Declaration
    public Picker(PickerStyle pickerStyle)
    Parameters
    Type Name Description
    PickerStyle pickerStyle

    Creates Picker by style customized by user.

    Fields

    View Source

    CurrentValueProperty

    CurrentValueProperty

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

    MaxValueProperty

    MaxValueProperty

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

    MinValueProperty

    MinValueProperty

    Declaration
    public static readonly BindableProperty MinValueProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    CurrentValue

    The Current value of Picker.

    Declaration
    public int CurrentValue { get; set; }
    Property Value
    Type Description
    int
    View Source

    DisplayedValues

    The values to be displayed instead of numbers.

    Declaration
    public ReadOnlyCollection<String> DisplayedValues { get; set; }
    Property Value
    Type Description
    ReadOnlyCollection<><String>
    View Source

    MaxValue

    The max value of Picker.

    Declaration
    public int MaxValue { get; set; }
    Property Value
    Type Description
    int
    View Source

    MinValue

    The min value of Picker.

    Declaration
    public int MinValue { get; set; }
    Property Value
    Type Description
    int

    Methods

    View Source

    ApplyStyle(ViewStyle)

    Applies style to Picker.

    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 Picker 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

    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()

    Overrides the parent method. This method is called by the framework when the instance is created.

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

    OnRelayout(Vector2, RelayoutContainer)

    Called after the size negotiation has been finished for this control.
    The control is expected to assign this given size to itself or its children.
    Should be overridden by derived classes if they need to layout views differently after certain operations like add or remove views, resize, or after changing specific properties.
    As this function is called from inside the size negotiation algorithm, you cannot call RequestRelayout (the call would just be ignored).

    Declaration
    public override void OnRelayout(Vector2 size, RelayoutContainer container)
    Parameters
    Type Name Description
    Vector2 size

    The allocated size.

    RelayoutContainer container

    The control should add views to this container that it is not able to allocate a size for.

    Overrides
    Control.OnRelayout(Vector2, RelayoutContainer)

    Events

    View Source

    ValueChanged

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

    Declaration
    public event EventHandler<ValueChangedEventArgs> ValueChanged
    Event Type
    Type Description
    EventHandler<><ValueChangedEventArgs>

    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