Class ScrollBar
Definition
- Namespace:
- Tizen.NUI.UIComponents
- Assembly:
- Tizen.NUI.dll
The ScrollBar is a UI component that can be linked to the scrollable objects
indicating the current scroll position of the scrollable object.
public class ScrollBar : View, INotifyPropertyChanged, IDisposable
- Inheritance
-
objectTizen.NUI.Binding.BindableObjectTizen.NUI.Binding.ElementScrollBar
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
View SourceScrollBar()
Creates an uninitialized scrollbar.
Declaration
public ScrollBar()
ScrollBar(Direction)
Creates an initialized scrollbar.
Declaration
public ScrollBar(ScrollBar.Direction direction)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollBar.Direction | direction | The direction of the scrollbar (either vertically or horizontally). |
Properties
View SourceIndicatorEndPadding
The padding at the end of the indicator. For example, the bottom if the scrollDirection is vertical.
Declaration
public float IndicatorEndPadding { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
IndicatorFixedHeight
The fixed height of the scroll indicator.
Declaration
public float IndicatorFixedHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
IndicatorHeightPolicy
The indicator height policy.
Declaration
public ScrollBar.IndicatorHeightPolicyType IndicatorHeightPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| ScrollBar.IndicatorHeightPolicyType |
IndicatorHideDuration
The duration in seconds for the scroll indicator to become fully invisible.
Declaration
public float IndicatorHideDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
IndicatorMinimumHeight
The minimum height for a variable size indicator.
Declaration
public float IndicatorMinimumHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
IndicatorShowDuration
The duration in seconds for the scroll indicator to become fully visible.
Declaration
public float IndicatorShowDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
IndicatorStartPadding
The padding at the start of the indicator. For example, the top if the scrollDirection is vertical.
Declaration
public float IndicatorStartPadding { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
ScrollDirection
The direction of the scrollbar.
Declaration
public ScrollBar.Direction ScrollDirection { get; set; }
Property Value
| Type | Description |
|---|---|
| ScrollBar.Direction |
ScrollPositionIntervals
The list of values to get the notification when the current scroll position of the scrollable object goes above or below any of these values.
Declaration
public PropertyArray ScrollPositionIntervals { get; set; }
Property Value
| Type | Description |
|---|---|
| PropertyArray |
Methods
View SourceDispose(DisposeTypes)
To dispose the ScrollBar instance.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type |
Overrides
Events
View SourcePanFinished
The event emitted when panning is finished on the scroll indicator.
Declaration
public event EventHandler<ScrollBar.PanFinishedEventArgs> PanFinished
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><ScrollBar.PanFinishedEventArgs> |
Remarks
Event only emitted when the source of the scroll position properties are set.
ScrollInterval
This is the event emitted when the current scroll position of the scrollable content goes above or below the values specified by ScrollPositionIntervals property.
Declaration
public event EventHandler<ScrollBar.ScrollIntervalEventArgs> ScrollInterval
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><ScrollBar.ScrollIntervalEventArgs> |
Remarks
Event only emitted when the source of the scroll position properties are set.