Class Spin

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll
API Level:
3

Spins the CustomView class.

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

Constructors

View Source

Spin()

Creates an initialized spin.

Declaration
C#
Copy
public Spin()
API Level: 3

Fields

View Source

IndicatorImageProperty

IndicatorImageProperty

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

MaxTextLengthProperty

MaxTextLengthProperty

Declaration
C#
Copy
public static readonly BindableProperty MaxTextLengthProperty
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
View Source

SpinTextProperty

SpinTextProperty

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

StepProperty

StepProperty

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

TextColorProperty

TextColorProperty

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

TextPointSizeProperty

TextPointSizeProperty

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

ValueProperty

ValueProperty

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

WrappingEnabledProperty

WrappingEnabledProperty

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

Properties

View Source

IndicatorImage

Show indicator image, for example, up or down arrow image.

Declaration
C#
Copy
public string IndicatorImage { get; set; }
Property Value
Type Description
String
API Level: 3
View Source

MaxTextLength

Maximum text length of the spin value.

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

MaxValue

Maximum value of the spin value.

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

MinValue

Minimum value of the spin value.

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

SpinText

Reference of TextField of the spin.

Declaration
C#
Copy
public TextField SpinText { get; set; }
Property Value
Type Description
TextField
API Level: 3
View Source

Step

Increasing, decreasing step of the spin value when up or down keys are pressed.

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

TextColor

The color of the spin value.

Declaration
C#
Copy
public Color TextColor { get; set; }
Property Value
Type Description
Color
API Level: 3
View Source

TextPointSize

Text point size of the spin value.

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

Value

Value to be set in the spin.

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

WrappingEnabled

Wrapping enabled status.

Declaration
C#
Copy
public bool WrappingEnabled { get; set; }
Property Value
Type Description
Boolean
API Level: 3

Methods

View Source

GetNaturalSize()

Overrides the method of GetNaturalSize() for the CustomView class.
Returns the natural size of the actor.

Declaration
C#
Copy
public override Size2D GetNaturalSize()
Returns
Type Description
Size2D

Natural size of this spin itself.

Overrides
API Level: 3
View Source

GetNextFocusableView(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
C#
Copy
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 Source

OnInitialize()

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
C#
Copy
public override void OnInitialize()
Overrides
API Level: 3
View Source

TextFieldKeyInputFocusGained(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
C#
Copy
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 Source

TextFieldKeyInputFocusLost(Object, EventArgs)

An event handler when the TextField in the spin looses it's key focus.

Declaration
C#
Copy
public void TextFieldKeyInputFocusLost(object source, EventArgs e)
Parameters
Type Name Description
Object source
EventArgs e
API Level: 3

Implements

Extension Methods