Class ScrollView

Definition

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

ScrollView contains views that can be scrolled manually (via touch).

C#
Copy
public class ScrollView : Scrollable, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
Inheritance
Tizen.NUI.Binding.BindableObject
Tizen.NUI.Binding.Element
ScrollView
Implements
System.IDisposable

Constructors

View Source

ScrollView()

Create an instance of ScrollView.

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

Properties

View Source

AxisAutoLockEnabled

Sets and Gets AxisAutoLockEnabled property.

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

OvershootX

Sets and Gets OvershootX property.

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

OvershootY

Sets and Gets OvershootY property.

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

Panning

Sets and Gets Panning property.

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

PanningEnabled

Sets and Gets PanningEnabled property.

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

ScrollDomainOffset

Sets and Gets ScrollDomainOffset property.

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

ScrollDomainSize

Sets and Gets ScrollDomainSize property.

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

ScrollFinal

Sets and Gets ScrollFinal property.

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

Scrolling

Sets and Gets Scrolling property.

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

ScrollMode

Sets and Gets ScrollMode property.

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

ScrollPosition

Sets and Gets ScrollPosition property.

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

ScrollPositionDelta

Sets and Gets ScrollPositionDelta property.

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

ScrollPrePosition

Sets and Gets ScrollPrePosition property.

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

ScrollPrePositionMax

Sets and Gets ScrollPrePositionMax property.

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

StartPagePosition

Sets and Gets StartPagePosition property.

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

WheelScrollDistanceStep

Sets and Gets WheelScrollDistanceStep property.

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

Wrap

Sets and Gets Wrap property.

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

WrapEnabled

Sets and Gets WrapEnabled property.

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

Methods

View Source

ApplyEffect(ScrollViewEffect)

Applies Effect to ScrollView.

Declaration
C#
Copy
public void ApplyEffect(ScrollViewEffect effect)
Parameters
Type Name Description
ScrollViewEffect effect

The effect to apply to scroll view.

API Level: 3
View Source

BindView(View)

Binds view to this ScrollView. Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.

Declaration
C#
Copy
public void BindView(View child)
Parameters
Type Name Description
View child

The view to add to this ScrollView.

API Level: 3
View Source

Dispose(DisposeTypes)

Dispose

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type

the dispose type

Overrides
API Level: 3
View Source

GetAxisAutoLock()

Returns state of Axis Auto Lock mode.

Declaration
C#
Copy
public bool GetAxisAutoLock()
Returns
Type Description
Boolean

Whether Axis Auto Lock mode has been enabled or not.

API Level: 3
View Source

GetAxisAutoLockGradient()

Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.

Declaration
C#
Copy
public float GetAxisAutoLockGradient()
Returns
Type Description
Single

The gradient, a value between 0.0 and 1.0f.

API Level: 3
View Source

GetCurrentPage()

Retrieves current scroll page based on ScrollView dimensions being the size of one page, and all pages laid out in
a grid fashion, increasing from left to right until the end of the X-domain.

Declaration
C#
Copy
public uint GetCurrentPage()
Returns
Type Description
System.UInt32

The current scroll position.

API Level: 3
View Source

GetCurrentScrollPosition()

Retrieves current scroll position.

Declaration
C#
Copy
public Vector2 GetCurrentScrollPosition()
Returns
Type Description
Vector2

The current scroll position.

API Level: 3
View Source

GetFlickSpeedCoefficient()

Gets the flick speed coefficient for ScrollView when flicking in free panning mode.
This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area.

Declaration
C#
Copy
public float GetFlickSpeedCoefficient()
Returns
Type Description
Single

The flick speed coefficient is returned.

API Level: 3
View Source

GetFrictionCoefficient()

Gets the friction coefficient setting for ScrollView when flicking in free panning mode. This is a value in stage-diagonals per second^2, stage-diagonal = Length( stage.width, stage.height )

Declaration
C#
Copy
public float GetFrictionCoefficient()
Returns
Type Description
Single

Friction coefficient is returned.

API Level: 3
View Source

GetMaxFlickSpeed()

Gets the maximum flick speed setting for ScrollView when flicking in free panning mode.
This is a value in stage-diagonals per second.

Declaration
C#
Copy
public float GetMaxFlickSpeed()
Returns
Type Description
Single

Maximum flick speed is returned.

API Level: 3
View Source

GetMinimumDistanceForFlick()

Gets the minimum pan distance required for a flick gesture in pixels.

Declaration
C#
Copy
public Vector2 GetMinimumDistanceForFlick()
Returns
Type Description
Vector2

Minimum pan distance vector with separate x and y distance.

API Level: 3
View Source

GetMinimumSpeedForFlick()

Returns the minimum pan speed required for a flick gesture in pixels per second.

Declaration
C#
Copy
public float GetMinimumSpeedForFlick()
Returns
Type Description
Single

Minimum pan speed.

API Level: 3
View Source

GetScrollFlickAlphaFunction()

Gets flick-animation's AlphaFunction.

Declaration
C#
Copy
public AlphaFunction GetScrollFlickAlphaFunction()
Returns
Type Description
AlphaFunction

Current easing alpha function of the flick animation.

API Level: 3
View Source

GetScrollFlickDuration()

Gets the time for the scroll flick-animation.

Declaration
C#
Copy
public float GetScrollFlickDuration()
Returns
Type Description
Single

The time in seconds for the animation to take.

API Level: 3
View Source

GetScrollSnapAlphaFunction()

Gets snap-animation's AlphaFunction.

Declaration
C#
Copy
public AlphaFunction GetScrollSnapAlphaFunction()
Returns
Type Description
AlphaFunction

Current easing alpha function of the snap animation.

API Level: 3
View Source

GetScrollSnapDuration()

Gets the time for the scroll snap-animation.

Declaration
C#
Copy
public float GetScrollSnapDuration()
Returns
Type Description
Single

The time in seconds for the animation to take.

API Level: 3
View Source

GetScrollUpdateDistance()

Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted.

Declaration
C#
Copy
public int GetScrollUpdateDistance()
Returns
Type Description
System.Int32

Current scroll update distance.

API Level: 3
View Source

GetWheelScrollDistanceStep()

Gets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.

Declaration
C#
Copy
public Vector2 GetWheelScrollDistanceStep()
Returns
Type Description
Vector2

The step of scroll distance(pixel) in X and Y axes.

API Level: 3
View Source

RemoveAllEffects()

Remove All Effects from ScrollView.

Declaration
C#
Copy
public void RemoveAllEffects()
API Level: 3
View Source

RemoveEffect(ScrollViewEffect)

Removes Effect from ScrollView.

Declaration
C#
Copy
public void RemoveEffect(ScrollViewEffect effect)
Parameters
Type Name Description
ScrollViewEffect effect

The effect to remove.

API Level: 3
View Source

RemoveScrollingDirection(Radian)

Removes a direction constraint from the scroll view.

Declaration
C#
Copy
public void RemoveScrollingDirection(Radian direction)
Parameters
Type Name Description
Radian direction

The axis to constrain the scroll-view to.

API Level: 3
View Source

ScrollTo(UInt32)

Scrolls View to position specified (contents will scroll to this position).

Declaration
C#
Copy
public void ScrollTo(uint page)
Parameters
Type Name Description
System.UInt32 page

The page to scroll to.

API Level: 3
View Source

ScrollTo(UInt32, Single)

Scrolls View to position specified (contents will scroll to this position).

Declaration
C#
Copy
public void ScrollTo(uint page, float duration)
Parameters
Type Name Description
System.UInt32 page

The page to scroll to.

Single duration

The duration of the animation in seconds.

API Level: 3
View Source

ScrollTo(UInt32, Single, DirectionBias)

Scrolls View to position specified (contents will scroll to this position).

Declaration
C#
Copy
public void ScrollTo(uint page, float duration, DirectionBias bias)
Parameters
Type Name Description
System.UInt32 page

The page to scroll to.

Single duration

The duration of the animation in seconds.

DirectionBias bias

Whether to bias scrolling to left or right.

API Level: 3
View Source

ScrollTo(View)

Scrolls View to position specified (contents will scroll to this position).

Declaration
C#
Copy
public void ScrollTo(View view)
Parameters
Type Name Description
View view

The view to center in on (via Scrolling).

API Level: 3
View Source

ScrollTo(View, Single)

Scrolls View to position specified (contents will scroll to this position).

Declaration
C#
Copy
public void ScrollTo(View view, float duration)
Parameters
Type Name Description
View view

The view to center in on (via Scrolling).

Single duration

The duration of the animation in seconds.

API Level: 3
View Source

ScrollTo(Vector2)

Scrolls View to position specified (contents will scroll to this position).

Declaration
C#
Copy
public void ScrollTo(Vector2 position)
Parameters
Type Name Description
Vector2 position

The position to scroll to.

API Level: 3
View Source

ScrollTo(Vector2, Single)

Scrolls View to position specified (contents will scroll to this position).

Declaration
C#
Copy
public void ScrollTo(Vector2 position, float duration)
Parameters
Type Name Description
Vector2 position

The position to scroll to.

Single duration

The duration of the animation in seconds.

API Level: 3
View Source

ScrollTo(Vector2, Single, AlphaFunction)

Scrolls View to position specified (contents will scroll to this position).

Declaration
C#
Copy
public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
Parameters
Type Name Description
Vector2 position

The position to scroll to.

Single duration

The duration of the animation in seconds.

AlphaFunction alpha

The alpha function to use.

API Level: 3
View Source

ScrollTo(Vector2, Single, AlphaFunction, DirectionBias, DirectionBias)

Scrolls View to position specified (contents will scroll to this position).

Declaration
C#
Copy
public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
Parameters
Type Name Description
Vector2 position

The position to scroll to.

Single duration

The duration of the animation in seconds.

AlphaFunction alpha

Alpha function to use.

DirectionBias horizontalBias

Whether to bias scrolling to left or right.

DirectionBias verticalBias

Whether to bias scrolling to top or bottom.

API Level: 3
View Source

ScrollTo(Vector2, Single, DirectionBias, DirectionBias)

Scrolls View to position specified (contents will scroll to this position).

Declaration
C#
Copy
public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
Parameters
Type Name Description
Vector2 position

The position to scroll to.

Single duration

The duration of the animation in seconds.

DirectionBias horizontalBias

Whether to bias scrolling to left or right.

DirectionBias verticalBias

Whether to bias scrolling to top or bottom.

API Level: 3
View Source

ScrollToSnapPoint()

Scrolls View to the nearest snap points as specified by the Rulers.
If already at snap points, then will return false, and not scroll.

Declaration
C#
Copy
public bool ScrollToSnapPoint()
Returns
Type Description
Boolean

True if Snapping necessary.

API Level: 3
View Source

SetAxisAutoLock(Boolean)

Enables or Disables Axis Auto Lock mode for panning within the ScrollView.
When enabled, any pan gesture that appears mostly horizontal or mostly vertical, will be automatically restricted to horizontal only or vertical only panning, until the pan gesture has completed.

Declaration
C#
Copy
public void SetAxisAutoLock(bool enable)
Parameters
Type Name Description
Boolean enable

Enables (true), or disables (false) AxisAutoLock mode.

API Level: 3
View Source

SetAxisAutoLockGradient(Single)

Sets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
By default, this is 0.36 (0.36:1) which means angles less than 20 degrees to an axis will lock to that axis.

Declaration
C#
Copy
public void SetAxisAutoLockGradient(float gradient)
Parameters
Type Name Description
Single gradient

gradient A value between 0.0 and 1.0 (auto-lock for all angles).

API Level: 3
View Source

SetFlickSpeedCoefficient(Single)

Sets the flick speed coefficient for ScrollView when flicking in free panning mode.
This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area.

Declaration
C#
Copy
public void SetFlickSpeedCoefficient(float speed)
Parameters
Type Name Description
Single speed

The flick speed coefficient (default = 1.0).

API Level: 3
View Source

SetFrictionCoefficient(Single)

Sets the friction coefficient for ScrollView when flicking.

Declaration
C#
Copy
public void SetFrictionCoefficient(float friction)
Parameters
Type Name Description
Single friction

Friction coefficient must be greater than 0.0 (default = 1.0).

API Level: 3
View Source

SetMaxFlickSpeed(Single)

Sets the maximum flick speed for the ScrollView when flicking in free panning mode.
This is a value in stage-diagonals per second. stage-diagonal = Length( stage.width, stage.height ).

Declaration
C#
Copy
public void SetMaxFlickSpeed(float speed)
Parameters
Type Name Description
Single speed

Maximum flick speed (default = 3.0).

API Level: 3
View Source

SetMaxOvershoot(Single, Single)

Sets maximum overshoot amount.

Declaration
C#
Copy
public void SetMaxOvershoot(float overshootX, float overshootY)
Parameters
Type Name Description
Single overshootX

The maximum number of horizontally scrolled pixels before overshoot X reaches 1.0f.

Single overshootY

The maximum number of vertically scrolled pixels before overshoot X reaches 1.0f.

API Level: 3
View Source

SetMinimumDistanceForFlick(Vector2)

Sets the minimum pan distance required for a flick in pixels.
Takes a Vector2 containing separate x and y values. As long as the pan distance exceeds one of these axes, a flick will be allowed.

Declaration
C#
Copy
public void SetMinimumDistanceForFlick(Vector2 distance)
Parameters
Type Name Description
Vector2 distance

The flick speed coefficient (default = 1.0).

API Level: 3
View Source

SetMinimumSpeedForFlick(Single)

Sets the minimum pan speed required for a flick in pixels per second.

Declaration
C#
Copy
public void SetMinimumSpeedForFlick(float speed)
Parameters
Type Name Description
Single speed

The minimum pan speed for a flick.

API Level: 3
View Source

SetScrollFlickAlphaFunction(AlphaFunction)

Sets flick-animation's AlphaFunction.

Declaration
C#
Copy
public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
Parameters
Type Name Description
AlphaFunction alpha

Easing alpha function of the flick animation.

API Level: 3
View Source

SetScrollFlickDuration(Single)

Sets the time for the scroll snap-animation.

Declaration
C#
Copy
public void SetScrollFlickDuration(float time)
Parameters
Type Name Description
Single time

The time in seconds for the animation to take.

API Level: 3
View Source

SetScrollingDirection(Radian)

Allows the user to constrain the scroll view in a particular direction.

Declaration
C#
Copy
public void SetScrollingDirection(Radian direction)
Parameters
Type Name Description
Radian direction

The axis to constrain the scroll-view to.

API Level: 3
View Source

SetScrollingDirection(Radian, Radian)

Allows the user to constrain the scroll view in a particular direction.

Declaration
C#
Copy
public void SetScrollingDirection(Radian direction, Radian threshold)
Parameters
Type Name Description
Radian direction

The axis to constrain the scroll-view to.

Radian threshold

The threshold to apply around the axis.

API Level: 3
View Source

SetScrollSensitive(Boolean)

Sets scroll sensibility of pan gesture.

Declaration
C#
Copy
public void SetScrollSensitive(bool sensitive)
Parameters
Type Name Description
Boolean sensitive

True to enable scroll, false to disable scrolling.

API Level: 3
View Source

SetScrollSnapAlphaFunction(AlphaFunction)

Sets snap-animation's AlphaFunction.

Declaration
C#
Copy
public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
Parameters
Type Name Description
AlphaFunction alpha

Easing alpha function of the snap animation.

API Level: 3
View Source

SetScrollSnapDuration(Single)

Sets the time for the scroll snap-animation.

Declaration
C#
Copy
public void SetScrollSnapDuration(float time)
Parameters
Type Name Description
Single time

The time in seconds for the animation to take.

API Level: 3
View Source

SetScrollUpdateDistance(Int32)

Sets the distance needed to scroll for ScrollUpdatedSignal to be emitted.
The scroll update distance tells ScrollView how far to move before ScrollUpdatedSignal the informs application.
Each time the ScrollView crosses this distance the signal will be emitted.

Declaration
C#
Copy
public void SetScrollUpdateDistance(int distance)
Parameters
Type Name Description
System.Int32 distance

The distance for ScrollView to move before emitting update signal.

API Level: 3
View Source

SetSnapOvershootAlphaFunction(AlphaFunction)

Sets Snap Overshoot animation's AlphaFunction.

Declaration
C#
Copy
public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
Parameters
Type Name Description
AlphaFunction alpha

Easing alpha function of the overshoot snap animation.

API Level: 3
View Source

SetSnapOvershootDuration(Single)

Sets Snap Overshoot animation's Duration.

Declaration
C#
Copy
public void SetSnapOvershootDuration(float duration)
Parameters
Type Name Description
Single duration

duration The duration of the overshoot snap animation.

API Level: 3
View Source

SetViewAutoSnap(Boolean)

Enables or Disables Actor Auto-Snap mode.
When Actor Auto-Snap mode has been enabled, ScrollView will automatically, snap to the closest actor (The closest actor will appear in the center of the ScrollView).

Declaration
C#
Copy
public void SetViewAutoSnap(bool enable)
Parameters
Type Name Description
Boolean enable

Enables (true), or disables (false) Actor AutoSnap.

API Level: 3
View Source

SetWheelScrollDistanceStep(Vector2)

Sets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.

Declaration
C#
Copy
public void SetWheelScrollDistanceStep(Vector2 step)
Parameters
Type Name Description
Vector2 step

step The step of scroll distance(pixel) in X and Y axes.

API Level: 3
View Source

SetWrapMode(Boolean)

Enables or Disables Wrap mode for ScrollView contents.
When enabled, the ScrollView contents are wrapped over the X/Y Domain.

Declaration
C#
Copy
public void SetWrapMode(bool enable)
Parameters
Type Name Description
Boolean enable

Enables (true), or disables (false) Wrap Mode.

API Level: 3
View Source

UnbindView(View)

Unbinds view to this ScrollView. Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.

Declaration
C#
Copy
public void UnbindView(View child)
Parameters
Type Name Description
View child

The view to remove to this ScrollView.

API Level: 3

Events

View Source

SnapStarted

SnapStarted can be used to subscribe or unsubscribe the event handler The SnapStarted signal is emitted when the ScrollView has started to snap or flick (it tells the target position, scale, rotation for the snap or flick).

Declaration
C#
Copy
public event DaliEventHandler<object, ScrollView.SnapStartedEventArgs> SnapStarted
Event Type
Type Description
DaliEventHandler<Object, ScrollView.SnapStartedEventArgs>
API Level: 3

Implements

System.IDisposable