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, IAtspiValue
- Inheritance
-
System.Object
Tizen.NUI.Binding.Element
Tizen.NUI.Components.Control
Slider
- Implements
-
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Constructors
View Source
Slider()
The constructor of the Slider class.
Declaration
API Level: 6
View Source
Slider(String)
The constructor of the Slider class with specific style.
Declaration
public Slider(string style)
Parameters
Type |
Name |
Description |
System.String |
style |
The string to initialize the Slider
|
API Level: 8
View Source
Slider(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 Source
BgTrackColor
Gets or sets the color of the background track image object.
Declaration
public Color BgTrackColor { get; set; }
Property Value
API Level: 6
View Source
CurrentValue
Gets or sets the current value of slider.
Declaration
public float CurrentValue { get; set; }
Property Value
Type |
Description |
System.Single |
|
API Level: 6
View Source
Direction
Gets or sets the direction type of slider.
Declaration
public Slider.DirectionType Direction { get; set; }
Property Value
API Level: 6
View Source
DiscreteValue
Gets or sets the discrete value of slider.
Declaration
public float DiscreteValue { get; set; }
Property Value
Type |
Description |
System.Single |
|
API Level: 9
View Source
HighIndicatorImageURL
Gets or sets the resource url of the high indicator image object.
Declaration
public string HighIndicatorImageURL { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: 6
View Source
HighIndicatorSize
Gets or sets the size of the high indicator object(image or text).
Declaration
public Size HighIndicatorSize { get; set; }
Property Value
API Level: 6
View Source
HighIndicatorTextContent
Gets or sets the text content of the high indicator text object.
Declaration
public string HighIndicatorTextContent { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: 6
View Source
Indicator
Gets or sets the indicator type, arrow or sign.
Declaration
public Slider.IndicatorType Indicator { get; set; }
Property Value
API Level: 6
View Source
IsDiscrete
Flag to decide whether the thumb snaps to the nearest discrete value when the user drags the thumb or taps.
The default value is false.
Declaration
public bool IsDiscrete { get; set; }
Property Value
API Level: 9
View Source
IsValueShown
Flag to decide whether the value indicator is shown
Declaration
public bool IsValueShown { get; set; }
Property Value
API Level: 9
View Source
LowIndicatorImageURL
Gets or sets the resource url of the low indicator image object.
Declaration
public string LowIndicatorImageURL { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: 6
View Source
LowIndicatorSize
Gets or sets the size of the low indicator object(image or text).
Declaration
public Size LowIndicatorSize { get; set; }
Property Value
API Level: 6
View Source
LowIndicatorTextContent
Gets or sets the text content of the low indicator text object.
Declaration
public string LowIndicatorTextContent { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: 6
View Source
MaxValue
Gets or sets the maximum value of slider.
Declaration
public float MaxValue { get; set; }
Property Value
Type |
Description |
System.Single |
|
API Level: 6
View Source
MinValue
Gets or sets the minimum value of slider.
Declaration
public float MinValue { get; set; }
Property Value
Type |
Description |
System.Single |
|
API Level: 6
View Source
SlidedTrackColor
Gets or sets the color of the slided track image object.
Declaration
public Color SlidedTrackColor { get; set; }
Property Value
API Level: 6
View Source
SpaceBetweenTrackAndIndicator
Gets or sets the value of the space between track and indicator.
Declaration
public uint SpaceBetweenTrackAndIndicator { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
API Level: 6
Declaration
public SliderStyle Style { get; }
Property Value
API Level: 8
View Source
ThumbColor
Gets or sets the color of the thumb image object.
Declaration
public Color ThumbColor { get; set; }
Property Value
API Level: 8
View Source
ThumbImageUrl
Gets or sets the Url of the thumb image.
Declaration
public Selector<string> ThumbImageUrl { get; set; }
Property Value
Type |
Description |
Selector<System.String> |
|
Exceptions
Type |
Condition |
System.NullReferenceException |
Thrown when setting null value.
|
API Level: 9
View Source
ThumbImageURL
Gets or sets the resource url of the thumb image object.
Please use ThumbImageUrl property.
Declaration
public string ThumbImageURL { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: 6
View Source
ThumbImageURLSelector
Gets or sets the resource url selector of the thumb image object.
Getter returns copied selector value if exist, null otherwise.
Please use ThumbImageUrl property.
Declaration
public StringSelector ThumbImageURLSelector { get; set; }
Property Value
Type |
Description |
Tizen.NUI.Components.StringSelector |
|
Exceptions
Type |
Condition |
System.NullReferenceException |
Thrown when setting null value.
|
API Level: 6
View Source
ThumbSize
Gets or sets the size of the thumb image object.
Declaration
public Size ThumbSize { get; set; }
Property Value
API Level: 6
View Source
TrackThickness
Gets or sets the thickness value of the track.
Declaration
public uint TrackThickness { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
API Level: 6
View Source
ValueIndicatorSize
Gets or sets the size of the value indicator image object.
Declaration
public Size ValueIndicatorSize { get; set; }
Property Value
API Level: 9
View Source
ValueIndicatorText
Gets or sets the text of value indicator.
Declaration
public string ValueIndicatorText { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: 9
View Source
ValueIndicatorUrl
Gets or sets the resource url of the value indicator image object.
Declaration
public string ValueIndicatorUrl { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: 9
Methods
View Source
ApplyStyle(ViewStyle)
Apply style to scrollbar.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type |
Name |
Description |
ViewStyle |
viewStyle |
The style to apply.
|
Overrides
API Level: 8
Declaration
protected override ViewStyle CreateViewStyle()
Returns
Type |
Description |
ViewStyle |
The default slider style.
|
Overrides
Tizen.NUI.Components.Control.CreateViewStyle()
API Level: 8
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Overrides
Tizen.NUI.Components.Control.Dispose(Tizen.NUI.DisposeTypes)
API Level: 6
Declaration
public override void OnFocusGained()
Overrides
Tizen.NUI.Components.Control.OnFocusGained()
API Level: 8
Declaration
public override void OnFocusLost()
Overrides
Tizen.NUI.Components.Control.OnFocusLost()
API Level: 8
Events
View Source
SlidingFinished
The sliding finished event handler.
Declaration
public event EventHandler<SliderSlidingFinishedEventArgs> SlidingFinished
Event Type
API Level: 8
View Source
SlidingStarted
The sliding started event handler.
Declaration
public event EventHandler<SliderSlidingStartedEventArgs> SlidingStarted
Event Type
API Level: 8
View Source
ValueChanged
The value changed event handler.
Declaration
public event EventHandler<SliderValueChangedEventArgs> ValueChanged
Event Type
API Level: 8
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable