Class Picker

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll
API Level:
9

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.

C#
Copy
public class Picker : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

Picker()

Creates a new instance of Picker.

Declaration
C#
Copy
public Picker()
API Level: 9
View Source

Picker(String)

Creates a new instance of Picker.

Declaration
C#
Copy
public Picker(string style)
Parameters
Type Name Description
String style

Creates Picker by special style defined in UX.

API Level: 9
View Source

Picker(PickerStyle)

Creates a new instance of Picker.

Declaration
C#
Copy
public Picker(PickerStyle pickerStyle)
Parameters
Type Name Description
PickerStyle pickerStyle

Creates Picker by style customized by user.

API Level: 9

Fields

View Source

CurrentValueProperty

CurrentValueProperty

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

MaxValueProperty

MaxValueProperty

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

MinValueProperty

MinValueProperty

Declaration
C#
Copy
public static readonly BindableProperty MinValueProperty
Field Value
Type Description
BindableProperty

Properties

View Source

CurrentValue

The Current value of Picker.

Declaration
C#
Copy
public int CurrentValue { get; set; }
Property Value
Type Description
Int32
API Level: 9
View Source

DisplayedValues

The values to be displayed instead of numbers.

Declaration
C#
Copy
public ReadOnlyCollection<String> DisplayedValues { get; set; }
Property Value
Type Description
ReadOnlyCollection<String>
API Level: 9
View Source

MaxValue

The max value of Picker.

Declaration
C#
Copy
public int MaxValue { get; set; }
Property Value
Type Description
Int32
API Level: 9
View Source

MinValue

The min value of Picker.

Declaration
C#
Copy
public int MinValue { get; set; }
Property Value
Type Description
Int32
API Level: 9

Methods

View Source

ApplyStyle(ViewStyle)

Applies style to Picker.

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

The style to apply.

Overrides
View Source

Dispose(DisposeTypes)

Dispose Picker and all children on it.

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

Dispose type.

Overrides
View Source

OnEnabled(Boolean)

Internal callback of enabled property changes. Inherited view can override this method to implements enabled property changes.

Declaration
C#
Copy
protected override void OnEnabled(bool enabled)
Parameters
Type Name Description
Boolean enabled
Overrides
View Source

OnInitialize()

Overrides the parent method.

Declaration
C#
Copy
public override void OnInitialize()
Overrides
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
C#
Copy
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

Events

View Source

ValueChanged

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

Declaration
C#
Copy
public event EventHandler<ValueChangedEventArgs> ValueChanged
Event Type
Type Description
EventHandler<ValueChangedEventArgs>
API Level: 9

Implements

Extension Methods