Class ScrollView

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll

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

C#
Copy
public class ScrollView : Scrollable, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

ScrollView()

Create an instance of ScrollView.

Declaration
C#
Copy
public ScrollView()

Fields

View Source

AxisAutoLockEnabledProperty

Declaration
C#
Copy
public static readonly BindableProperty AxisAutoLockEnabledProperty
Field Value
Type Description
BindableProperty
View Source

OvershootXProperty

Declaration
C#
Copy
public static readonly BindableProperty OvershootXProperty
Field Value
Type Description
BindableProperty
View Source

OvershootYProperty

Declaration
C#
Copy
public static readonly BindableProperty OvershootYProperty
Field Value
Type Description
BindableProperty
View Source

PanningEnabledProperty

Declaration
C#
Copy
public static readonly BindableProperty PanningEnabledProperty
Field Value
Type Description
BindableProperty
View Source

PanningProperty

Declaration
C#
Copy
public static readonly BindableProperty PanningProperty
Field Value
Type Description
BindableProperty
View Source

ScrollDomainOffsetProperty

Declaration
C#
Copy
public static readonly BindableProperty ScrollDomainOffsetProperty
Field Value
Type Description
BindableProperty
View Source

ScrollDomainSizeProperty

Declaration
C#
Copy
public static readonly BindableProperty ScrollDomainSizeProperty
Field Value
Type Description
BindableProperty
View Source

ScrollFinalProperty

Declaration
C#
Copy
public static readonly BindableProperty ScrollFinalProperty
Field Value
Type Description
BindableProperty
View Source

ScrollingProperty

Declaration
C#
Copy
public static readonly BindableProperty ScrollingProperty
Field Value
Type Description
BindableProperty
View Source

ScrollModeProperty

Declaration
C#
Copy
public static readonly BindableProperty ScrollModeProperty
Field Value
Type Description
BindableProperty
View Source

ScrollPositionDeltaProperty

Declaration
C#
Copy
public static readonly BindableProperty ScrollPositionDeltaProperty
Field Value
Type Description
BindableProperty
View Source

ScrollPositionProperty

Declaration
C#
Copy
public static readonly BindableProperty ScrollPositionProperty
Field Value
Type Description
BindableProperty
View Source

ScrollPrePositionMaxProperty

Declaration
C#
Copy
public static readonly BindableProperty ScrollPrePositionMaxProperty
Field Value
Type Description
BindableProperty
View Source

ScrollPrePositionProperty

Declaration
C#
Copy
public static readonly BindableProperty ScrollPrePositionProperty
Field Value
Type Description
BindableProperty
View Source

StartPagePositionProperty

Declaration
C#
Copy
public static readonly BindableProperty StartPagePositionProperty
Field Value
Type Description
BindableProperty
View Source

WheelScrollDistanceStepProperty

Declaration
C#
Copy
public static readonly BindableProperty WheelScrollDistanceStepProperty
Field Value
Type Description
BindableProperty
View Source

WrapEnabledProperty

Declaration
C#
Copy
public static readonly BindableProperty WrapEnabledProperty
Field Value
Type Description
BindableProperty
View Source

WrapProperty

Declaration
C#
Copy
public static readonly BindableProperty WrapProperty
Field Value
Type Description
BindableProperty

Properties

View Source

AxisAutoLockEnabled

Sets and Gets AxisAutoLockEnabled property.

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

OvershootX

Sets and Gets OvershootX property.

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

OvershootY

Sets and Gets OvershootY property.

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

Panning

Sets and Gets Panning property.

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

PanningEnabled

Sets and Gets PanningEnabled property.

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

ScrollDomainOffset

Sets and Gets ScrollDomainOffset property.

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

ScrollDomainSize

Sets and Gets ScrollDomainSize property.

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

ScrollFinal

Sets and Gets ScrollFinal property.

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

Scrolling

Sets and Gets Scrolling property.

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

ScrollMode

Sets and Gets ScrollMode property.

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

ScrollPosition

Sets and Gets ScrollPosition property.

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

ScrollPositionDelta

Sets and Gets ScrollPositionDelta property.

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

ScrollPrePosition

Sets and Gets ScrollPrePosition property.

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

ScrollPrePositionMax

Sets and Gets ScrollPrePositionMax property.

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

StartPagePosition

Sets and Gets StartPagePosition property.

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

WheelScrollDistanceStep

Sets and Gets WheelScrollDistanceStep property.

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

Wrap

Sets and Gets Wrap property.

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

WrapEnabled

Sets and Gets WrapEnabled property.

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

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.

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.

View Source

Dispose(DisposeTypes)

Dispose

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

the dispose type

Overrides
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.

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.

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
UInt32

The current scroll position.

View Source

GetCurrentScrollPosition()

Retrieves current scroll position.

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

The current scroll position.

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.

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.

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.

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.

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.

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.

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.

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.

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.

View Source

GetScrollUpdateDistance()

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

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

Current scroll update distance.

View Source

ReleaseSwigCPtr(Runtime.InteropServices.HandleRef)

Declaration
C#
Copy
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type Name Description
Tizen.System.Runtime.InteropServices.HandleRef swigCPtr
Overrides
View Source

RemoveAllEffects()

Remove All Effects from ScrollView.

Declaration
C#
Copy
public void RemoveAllEffects()
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.

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.

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
UInt32 page

The page to scroll to.

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
UInt32 page

The page to scroll to.

Single duration

The duration of the animation in seconds.

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
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.

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).

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.

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.

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.

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.

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.

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.

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.

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.

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).

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).

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).

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).

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.

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).

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.

View Source

SetRulerX(RulerPtr)

Set ruler X

Declaration
C#
Copy
public void SetRulerX(RulerPtr ruler)
Parameters
Type Name Description
RulerPtr ruler
View Source

SetRulerY(RulerPtr)

Set ruler Y

Declaration
C#
Copy
public void SetRulerY(RulerPtr ruler)
Parameters
Type Name Description
RulerPtr ruler
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.

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.

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.

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.

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.

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.

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.

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
Int32 distance

The distance for ScrollView to move before emitting update signal.

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.

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.

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.

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.

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.

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>

Implements

Extension Methods