Class Spin
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
Spins the CustomView class.
public class Spin : CustomView, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
- Inheritance
-
Tizen.NUI.Binding.BindableObjectTizen.NUI.Binding.ElementSpin
- Implements
Constructors
View SourceSpin()
Creates an initialized spin.
Declaration
public Spin()
API Level: 3
Properties
View SourceIndicatorImage
Show indicator image, for example, up or down arrow image.
Declaration
public string IndicatorImage { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceMaxTextLength
Maximum text lengh of the spin value.
Declaration
public int MaxTextLength { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceMaxValue
Maximum value of the spin value.
Declaration
public int MaxValue { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceMinValue
Minimum value of the spin value.
Declaration
public int MinValue { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceSpinText
Reference of TextField of the spin.
Declaration
public TextField SpinText { get; set; }
Property Value
Type | Description |
---|---|
TextField |
API Level: 3
View SourceStep
Increasing, decreasing step of the spin value when up or down keys are pressed.
Declaration
public int Step { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceTextColor
The color of the spin value.
Declaration
public Color TextColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
API Level: 3
View SourceTextPointSize
Text point size of the spin value.
Declaration
public int TextPointSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceValue
Value to be set in the spin.
Declaration
public int Value { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceWrappingEnabled
Wrapping enabled status.
Declaration
public bool WrappingEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
Methods
View SourceGetNaturalSize()
Overrides the method of GetNaturalSize() for the CustomView class.
Returns the natural size of the actor.
Declaration
public override Size2D GetNaturalSize()
Returns
Type | Description |
---|---|
Size2D | Natural size of this spin itself. |
Overrides
API Level: 3
View SourceGetNextFocusableView(View, View.FocusDirection, Boolean)
Overrides the method of GetNextKeyboardFocusableView() for the CustomView class.
Gets the next key focusable view in this view towards the given direction.
A view needs to override this function in order to support two-dimensional key navigation.
Declaration
public override View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled)
Parameters
Type | Name | Description |
---|---|---|
View | currentFocusedView | The current focused view. |
View.FocusDirection | direction | The direction to move the focus towards. |
Boolean | loopEnabled | Whether the focus movement should be looped within the control. |
Returns
Type | Description |
---|---|
View | The next keyboard focusable view in this control or an empty handle if no view can be focused. |
Overrides
API Level: 3
View SourceOnInitialize()
Overrides the method of OnInitialize() for the CustomView class.
This method is called after the control has been initialized.
Derived classes should do any second phase initialization by overriding this method.
Declaration
public override void OnInitialize()
Overrides
API Level: 3
View SourceTextFieldKeyInputFocusGained(Object, EventArgs)
An event handler is used when the TextField in the spin gets the key focus.
Make sure when the current spin that takes input focus, also takes the keyboard focus.
For example, when you tap the spin directly.
Declaration
public void TextFieldKeyInputFocusGained(object source, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Object | source | Sender of this event. |
EventArgs | e | Event arguments. |
API Level: 3
View SourceTextFieldKeyInputFocusLost(Object, EventArgs)
An event handler when the TextField in the spin looses it's key focus.
Declaration
public void TextFieldKeyInputFocusLost(object source, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Object | source | |
EventArgs | e |