Class CircularScrollbar
Definition
- Namespace:
- Tizen.NUI.Wearable
- Assembly:
- Tizen.NUI.Wearable.dll
The CircualrScrollbar is a wearable NUI component that can be linked to the scrollable objects
indicating the current scroll position of the scrollable object.
public class CircularScrollbar : ScrollbarBase, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
- Implements
-
System.IDisposable
Constructors
View Source
Create an empty CircularScrollbar.
Declaration
public CircularScrollbar()
View Source
Create a CircularScrollbar and initialize with properties.
Declaration
public CircularScrollbar(float contentLength, float viewportLength, float currentPosition, bool isHorizontal = false)
Parameters
Type |
Name |
Description |
float |
contentLength |
The length of the scrollable content area.
|
float |
viewportLength |
The length of the viewport representing the amount of visible content.
|
float |
currentPosition |
The current position of the viewport in scrollable content area. This is the viewport's top position if the scroller is vertical, otherwise, left.
|
bool |
isHorizontal |
Whether the direction of scrolling is horizontal or not. It is vertical by default.
|
View Source
Create an empty CircularScrollbar with a CircularScrollbarStyle instance to set style properties.
Declaration
public CircularScrollbar(CircularScrollbarStyle style)
Parameters
Fields
View Source
Bindable property of Thickness
Declaration
public static readonly BindableProperty ThicknessProperty
Field Value
View Source
Bindable property of ThumbColor
Declaration
public static readonly BindableProperty ThumbColorProperty
Field Value
View Source
Bindable property of TrackColor
Declaration
public static readonly BindableProperty TrackColorProperty
Field Value
View Source
Bindable property of TrackSweepAngle
Declaration
public static readonly BindableProperty TrackSweepAngleProperty
Field Value
Properties
View Source
Declaration
public override float ScrollCurrentPosition { get; }
Property Value
Overrides
View Source
Declaration
public override float ScrollPosition { get; }
Property Value
Overrides
View Source
The thickness of the scrollbar and track.
Declaration
public float Thickness { get; set; }
Property Value
View Source
The color of the thumb part.
Declaration
public Color ThumbColor { get; set; }
Property Value
View Source
The color of the track part.
Declaration
public Color TrackColor { get; set; }
Property Value
View Source
The sweep angle of track area in degrees.
Declaration
public float TrackSweepAngle { get; set; }
Property Value
Methods
View Source
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Overrides
View Source
Declaration
protected override ViewStyle CreateViewStyle()
Returns
Overrides
View Source
Declaration
public override void Initialize(float contentLength, float viewportLenth, float currentPosition, bool isHorizontal = false)
Parameters
Type |
Name |
Description |
float |
contentLength |
|
float |
viewportLenth |
|
float |
currentPosition |
|
bool |
isHorizontal |
|
Overrides
View Source
Declaration
public override void OnRelayout(Vector2 size, RelayoutContainer container)
Parameters
Overrides
View Source
Declaration
public override void ScrollTo(float position, uint durationMs = null, AlphaFunction alphaFunction = null)
Parameters
Type |
Name |
Description |
float |
position |
|
uint |
durationMs |
|
AlphaFunction |
alphaFunction |
|
Overrides
View Source
Declaration
public override void Update(float contentLength, float viewportLength, float position, uint durationMs = null, AlphaFunction alphaFunction = null)
Parameters
Type |
Name |
Description |
float |
contentLength |
|
float |
viewportLength |
|
float |
position |
|
uint |
durationMs |
|
AlphaFunction |
alphaFunction |
|
Overrides
View Source
Declaration
public override void Update(float contentLength, float position, uint durationMs = null, AlphaFunction alphaFunction = null)
Parameters
Type |
Name |
Description |
float |
contentLength |
|
float |
position |
|
uint |
durationMs |
|
AlphaFunction |
alphaFunction |
|
Overrides
Implements
System.IDisposable
Extension Methods