Class Slider
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 6
A slider lets users select a value from a continuous or discrete range of values by moving the slider thumb.
public class Slider : Control, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
- Inheritance
-
Tizen.NUI.Binding.BindableObjectTizen.NUI.Binding.ElementTizen.NUI.Components.ControlSlider
- Implements
Constructors
View SourceSlider()
The constructor of the Slider class.
Declaration
public Slider()
API Level: 6
View SourceSlider(String)
The constructor of the Slider class with specific style.
Declaration
public Slider(string style)
Parameters
Type | Name | Description |
---|---|---|
String | style | The string to initialize the Slider |
API Level: 8
View SourceSlider(SliderStyle)
The constructor of the Slider class with specific style.
Declaration
public Slider(SliderStyle sliderStyle)
Parameters
Type | Name | Description |
---|---|---|
SliderStyle | sliderStyle | The style object to initialize the Slider |
API Level: 8
Properties
View SourceBgTrackColor
Gets or sets the color of the background track image object.
Declaration
public Color BgTrackColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
API Level: 6
View SourceCurrentValue
Gets or sets the current value of slider.
Declaration
public float CurrentValue { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 6
View SourceDirection
Gets or sets the direction type of slider.
Declaration
public Slider.DirectionType Direction { get; set; }
Property Value
Type | Description |
---|---|
Slider.DirectionType |
API Level: 6
View SourceHighIndicatorImageURL
Gets or sets the resource url of the high indicator image object.
Declaration
public string HighIndicatorImageURL { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceHighIndicatorSize
Gets or sets the size of the high indicator object(image or text).
Declaration
public Size HighIndicatorSize { get; set; }
Property Value
Type | Description |
---|---|
Size |
API Level: 6
View SourceHighIndicatorTextContent
Gets or sets the text content of the high indicator text object.
Declaration
public string HighIndicatorTextContent { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceIndicator
Gets or sets the indicator type, arrow or sign.
Declaration
public Slider.IndicatorType Indicator { get; set; }
Property Value
Type | Description |
---|---|
Slider.IndicatorType |
API Level: 6
View SourceLowIndicatorImageURL
Gets or sets the resource url of the low indicator image object.
Declaration
public string LowIndicatorImageURL { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceLowIndicatorSize
Gets or sets the size of the low indicator object(image or text).
Declaration
public Size LowIndicatorSize { get; set; }
Property Value
Type | Description |
---|---|
Size |
API Level: 6
View SourceLowIndicatorTextContent
Gets or sets the text content of the low indicator text object.
Declaration
public string LowIndicatorTextContent { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceMaxValue
Gets or sets the maximum value of slider.
Declaration
public float MaxValue { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 6
View SourceMinValue
Gets or sets the minimum value of slider.
Declaration
public float MinValue { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 6
View SourceSlidedTrackColor
Gets or sets the color of the slided track image object.
Declaration
public Color SlidedTrackColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
API Level: 6
View SourceSpaceBetweenTrackAndIndicator
Gets or sets the value of the space between track and indicator.
Declaration
public uint SpaceBetweenTrackAndIndicator { get; set; }
Property Value
Type | Description |
---|---|
UInt32 |
API Level: 6
View SourceStyle
Return a copied Style instance of Slider
Declaration
public SliderStyle Style { get; }
Property Value
Type | Description |
---|---|
SliderStyle |
Remarks
It returns copied Style instance and changing it does not effect to the Slider. Style setting is possible by using constructor or the function of ApplyStyle(ViewStyle viewStyle)
API Level: 8
View SourceThumbColor
Gets or sets the color of the thumb image object.
Declaration
public Color ThumbColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
API Level: 8
View SourceThumbImageURL
Gets or sets the resource url of the thumb image object.
Declaration
public string ThumbImageURL { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceThumbImageURLSelector
Gets or sets the resource url selector of the thumb image object. Getter returns copied selector value if exist, null otherwise.
Declaration
public StringSelector ThumbImageURLSelector { get; set; }
Property Value
Type | Description |
---|---|
Tizen.NUI.Components.StringSelector |
Exceptions
Type | Condition |
---|---|
NullReferenceException | Thrown when setting null value. |
API Level: 6
View SourceThumbSize
Gets or sets the size of the thumb image object.
Declaration
public Size ThumbSize { get; set; }
Property Value
Type | Description |
---|---|
Size |
API Level: 6
View SourceTrackThickness
Gets or sets the thickness value of the track.
Declaration
public uint TrackThickness { get; set; }
Property Value
Type | Description |
---|---|
UInt32 |
API Level: 6
Methods
View SourceApplyStyle(ViewStyle)
Apply style to scrollbar.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type | Name | Description |
---|---|---|
Tizen.NUI.BaseComponents.ViewStyle | viewStyle | The style to apply. |
Overrides
API Level: 6
View SourceCreateViewStyle()
Get Slider style.
Declaration
protected override ViewStyle CreateViewStyle()
Returns
Type | Description |
---|---|
Tizen.NUI.BaseComponents.ViewStyle | The default slider style. |
Overrides
API Level: 8
View SourceDispose(DisposeTypes)
Dispose Slider.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | Dispose type. |
Overrides
API Level: 6
View SourceOnFocusGained()
Focus gained callback.
Declaration
public override void OnFocusGained()
Overrides
API Level: 8
View SourceOnFocusLost()
Focus Lost callback.
Declaration
public override void OnFocusLost()
Overrides
API Level: 8
Events
View SourceSlidingFinished
The sliding finished event handler.
Declaration
public event EventHandler<SliderSlidingFinishedEventArgs> SlidingFinished
Event Type
Type | Description |
---|---|
EventHandler<SliderSlidingFinishedEventArgs> |
API Level: 8
View SourceSlidingFinishedEvent
The sliding finished event handler.
Declaration
[Obsolete("Deprecated in API8; Will be removed in API10. Please use SlidingFinished event instead.")]
public event EventHandler<Slider.SlidingFinishedArgs> SlidingFinishedEvent
Event Type
Type | Description |
---|---|
EventHandler<Slider.SlidingFinishedArgs> |
API Level: 6
View SourceSlidingStarted
The sliding started event handler.
Declaration
public event EventHandler<SliderSlidingStartedEventArgs> SlidingStarted
Event Type
Type | Description |
---|---|
EventHandler<SliderSlidingStartedEventArgs> |
API Level: 8
View SourceStateChangedEvent
The state changed event handler.
Declaration
[Obsolete("Deprecated in API8; Will be removed in API10. Please use View.ControlStateChangedEvent")]
public event EventHandler<Slider.StateChangedArgs> StateChangedEvent
Event Type
Type | Description |
---|---|
EventHandler<Slider.StateChangedArgs> |
API Level: 6
View SourceValueChanged
The value changed event handler.
Declaration
public event EventHandler<SliderValueChangedEventArgs> ValueChanged
Event Type
Type | Description |
---|---|
EventHandler<SliderValueChangedEventArgs> |
API Level: 8
View SourceValueChangedEvent
The value changed event handler.
Declaration
[Obsolete("Deprecated in API8; Will be removed in API10. Please use ValueChanged event instead.")]
public event EventHandler<Slider.ValueChangedArgs> ValueChangedEvent
Event Type
Type | Description |
---|---|
EventHandler<Slider.ValueChangedArgs> |