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
-
objectPicker
- Implements
-
System.IDisposable
Constructors
View SourcePicker()
Creates a new instance of Picker.
Declaration
public Picker()
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. |
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 SourceCurrentValueProperty
CurrentValueProperty
Declaration
public static readonly BindableProperty CurrentValueProperty
Field Value
Type | Description |
---|---|
BindableProperty |
MaxValueProperty
MaxValueProperty
Declaration
public static readonly BindableProperty MaxValueProperty
Field Value
Type | Description |
---|---|
BindableProperty |
MinValueProperty
MinValueProperty
Declaration
public static readonly BindableProperty MinValueProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
View SourceCurrentValue
The Current value of Picker.
Declaration
public int CurrentValue { get; set; }
Property Value
Type | Description |
---|---|
int |
DisplayedValues
The values to be displayed instead of numbers.
Declaration
public ReadOnlyCollection<String> DisplayedValues { get; set; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<><String> |
MaxValue
The max value of Picker.
Declaration
public int MaxValue { get; set; }
Property Value
Type | Description |
---|---|
int |
MinValue
The min value of Picker.
Declaration
public int MinValue { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceApplyStyle(ViewStyle)
Applies style to Picker.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type | Name | Description |
---|---|---|
ViewStyle | viewStyle | The style to apply. |
Overrides
View SourceDispose(DisposeTypes)
Dispose Picker and all children on it.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | Dispose type. |
Overrides
View SourceOnEnabled(bool)
Declaration
protected override void OnEnabled(bool enabled)
Parameters
Type | Name | Description |
---|---|---|
bool | enabled |
Overrides
View SourceOnInitialize()
Declaration
public override void OnInitialize()
Overrides
View SourceOnRelayout(Vector2, RelayoutContainer)
Declaration
public override void OnRelayout(Vector2 size, RelayoutContainer container)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | size | |
RelayoutContainer | container |
Overrides
Events
View SourceValueChanged
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> |