Class ScrollableBase

    Definition

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

    This class provides a View that can scroll a single View with a layout. This View can be a nest of Views.

    public class ScrollableBase : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    ViewWrapper
    CustomView
    VisualView
    Control
    ScrollableBase
    Derived
    RecyclerView
    RecyclerView
    RecyclerView
    RecyclerView
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    ScrollableBase()

    Default Constructor

    Declaration
    public ScrollableBase()
    View Source

    ScrollableBase(string)

    Creates a new instance of a ScrollableBase with style.

    Declaration
    public ScrollableBase(string style)
    Parameters
    Type Name Description
    string style

    Creates ScrollableBase by special style defined in UX.

    View Source

    ScrollableBase(ControlStyle)

    Creates a new instance of a ScrollableBase with style.

    Declaration
    public ScrollableBase(ControlStyle style)
    Parameters
    Type Name Description
    ControlStyle style

    A style applied to the newly created ScrollableBase.

    Fields

    View Source

    DecelerationRateProperty

    DecelerationRateProperty

    Declaration
    public static readonly BindableProperty DecelerationRateProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    DecelerationThresholdProperty

    DecelerationThresholdProperty

    Declaration
    public static readonly BindableProperty DecelerationThresholdProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    EnableOverShootingEffectProperty

    EnableOverShootingEffectProperty

    Declaration
    public static readonly BindableProperty EnableOverShootingEffectProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    FadeScrollbarProperty

    FadeScrollbarProperty

    Declaration
    public static readonly BindableProperty FadeScrollbarProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    HideScrollbarProperty

    HideScrollbarProperty

    Declaration
    public static readonly BindableProperty HideScrollbarProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    LayoutProperty

    LayoutProperty

    Declaration
    public static readonly BindableProperty LayoutProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    NoticeAnimationEndBeforePositionProperty

    NoticeAnimationEndBeforePositionProperty

    Declaration
    public static readonly BindableProperty NoticeAnimationEndBeforePositionProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    PaddingProperty

    PaddingProperty

    Declaration
    public static readonly BindableProperty PaddingProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    PageFlickThresholdProperty

    PageFlickThresholdProperty

    Declaration
    public static readonly BindableProperty PageFlickThresholdProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    ScrollAlphaFunctionProperty

    ScrollAlphaFunctionProperty

    Declaration
    public static readonly BindableProperty ScrollAlphaFunctionProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    ScrollAvailableAreaProperty

    ScrollAvailableAreaProperty

    Declaration
    public static readonly BindableProperty ScrollAvailableAreaProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    ScrollbarProperty

    ScrollbarProperty

    Declaration
    public static readonly BindableProperty ScrollbarProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    ScrollDurationProperty

    ScrollDurationProperty

    Declaration
    public static readonly BindableProperty ScrollDurationProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    ScrollEnabledProperty

    ScrollEnabledProperty

    Declaration
    public static readonly BindableProperty ScrollEnabledProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    ScrollingDirectionProperty

    ScrollingDirectionProperty

    Declaration
    public static readonly BindableProperty ScrollingDirectionProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    ScrollingEventThresholdProperty

    ScrollingEventThresholdProperty

    Declaration
    public static readonly BindableProperty ScrollingEventThresholdProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    SnapToPageProperty

    SnapToPageProperty

    Declaration
    public static readonly BindableProperty SnapToPageProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    StepScrollDistanceProperty

    StepScrollDistanceProperty

    Declaration
    public static readonly BindableProperty StepScrollDistanceProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    WheelScrollDistanceProperty

    WheelScrollDistanceProperty

    Declaration
    public static readonly BindableProperty WheelScrollDistanceProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    Children

    List of children of Container.

    Declaration
    public List<View> Children { get; }
    Property Value
    Type Description
    List<><View>
    View Source

    ContentContainer

    Container which has content of ScrollableBase.

    Declaration
    public View ContentContainer { get; }
    Property Value
    Type Description
    View
    View Source

    CurrentPage

    Get current page. Working property with SnapToPage property.

    Declaration
    public int CurrentPage { get; }
    Property Value
    Type Description
    int
    View Source

    DecelerationRate

    Deceleration rate of scrolling by finger. Rate should be bigger than 0 and smaller than 1. Default value is 0.998f;

    Declaration
    public float DecelerationRate { get; set; }
    Property Value
    Type Description
    float
    View Source

    DecelerationThreshold

    Threshold not to go infinite at the end of scrolling animation.

    Declaration
    public float DecelerationThreshold { get; set; }
    Property Value
    Type Description
    float
    View Source

    EnableOverShootingEffect

    Enable/Disable overshooting effect. default is disabled.

    Declaration
    public bool EnableOverShootingEffect { get; set; }
    Property Value
    Type Description
    bool
    View Source

    FadeScrollbar

    The boolean flag for automatic fading Scrollbar. Scrollbar will be faded out when scroll stay in certain position longer than the threshold. Scrollbar will be faded in scroll position changes.

    Declaration
    public bool FadeScrollbar { get; set; }
    Property Value
    Type Description
    bool
    View Source

    HideScrollbar

    Always hide Scrollbar.

    Declaration
    public bool HideScrollbar { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Layout

    Set the layout on this View. Replaces any existing Layout.

    Declaration
    public LayoutItem Layout { get; set; }
    Property Value
    Type Description
    LayoutItem
    View Source

    NoticeAnimationEndBeforePosition

    Notice before animation is finished.

    Declaration
    public float NoticeAnimationEndBeforePosition { get; set; }
    Property Value
    Type Description
    float
    View Source

    Padding

    Padding for the ScrollableBase

    Declaration
    public Extents Padding { get; set; }
    Property Value
    Type Description
    Extents
    View Source

    PageFlickThreshold

    Page will be changed when velocity of panning is over threshold. The unit of threshold is pixel per millisecond.

    Declaration
    public float PageFlickThreshold { get; set; }
    Property Value
    Type Description
    float
    View Source

    ScrollAlphaFunction

    Alphafunction for scroll animation.

    Declaration
    public AlphaFunction ScrollAlphaFunction { get; set; }
    Property Value
    Type Description
    AlphaFunction
    View Source

    ScrollAvailableArea

    Scroll Available area.

    Declaration
    public Vector2 ScrollAvailableArea { get; set; }
    Property Value
    Type Description
    Vector2
    View Source

    Scrollbar

    Scrollbar for ScrollableBase.

    Declaration
    public ScrollbarBase Scrollbar { get; set; }
    Property Value
    Type Description
    ScrollbarBase
    View Source

    ScrollCurrentPosition

    Current scroll position in the middle of ScrollTo animation. This is the position in the opposite direction to the current position of ContentContainer.

    Declaration
    public Position ScrollCurrentPosition { get; }
    Property Value
    Type Description
    Position
    View Source

    ScrollDuration

    Duration of scroll animation. Default value is 125ms.

    Declaration
    public int ScrollDuration { get; set; }
    Property Value
    Type Description
    int
    View Source

    ScrollEnabled

    Enable or disable scrolling.

    Declaration
    public bool ScrollEnabled { get; set; }
    Property Value
    Type Description
    bool
    View Source

    ScrollingDirection

    Scrolling direction mode. Default is Vertical scrolling.

    Declaration
    public ScrollableBase.Direction ScrollingDirection { get; set; }
    Property Value
    Type Description
    ScrollableBase.Direction
    View Source

    ScrollingEventThreshold

    Scrolling event will be thrown when this amount of scroll position is changed. If this threshold becomes smaller, the tracking detail increases but the scrolling range that can be tracked becomes smaller. If large sized ContentContainer is required, please use larger threshold value. Default ScrollingEventThreshold value is 0.001f.

    Declaration
    public float ScrollingEventThreshold { get; set; }
    Property Value
    Type Description
    float
    View Source

    ScrollPosition

    Scroll position given to ScrollTo. This is the position in the opposite direction to the position of ContentContainer.

    Declaration
    public Position ScrollPosition { get; }
    Property Value
    Type Description
    Position
    View Source

    SnapToPage

    Pages mode, enables moving to the next or return to current page depending on pan displacement. Default is false.

    Declaration
    public bool SnapToPage { get; set; }
    Property Value
    Type Description
    bool
    View Source

    StepScrollDistance

    Step scroll move distance. Key focus originally moves focusable objects, but in ScrollableBase, if focusable object is too far or un-exist and ScrollableBase is focusable, it can scroll move itself by key input. this value decide how long distance will it moves in one step. if any value is not set, step will be moved quater size of ScrollableBase length.

    Declaration
    public float StepScrollDistance { get; set; }
    Property Value
    Type Description
    float
    View Source

    WheelScrollDistance

    Wheel scroll move distance. This value decide how long distance will it moves in wheel event.

    Declaration
    public float WheelScrollDistance { get; set; }
    Property Value
    Type Description
    float

    Methods

    View Source

    AccessibilityIsScrollable()

    Gets scrollable status.

    Declaration
    protected override bool AccessibilityIsScrollable()
    Returns
    Type Description
    bool
    Overrides
    View.AccessibilityIsScrollable()
    View Source

    AccessibilityScrollToChild(View)

    Declaration
    protected override bool AccessibilityScrollToChild(View child)
    Parameters
    Type Name Description
    View child
    Returns
    Type Description
    bool
    Overrides
    View.AccessibilityScrollToChild(View)
    View Source

    Add(View)

    Called after a child has been added to the owning view.

    Declaration
    public override void Add(View view)
    Parameters
    Type Name Description
    View view

    The child which has been added.

    Overrides
    View.Add(View)
    View Source

    AdjustTargetPositionOfScrollAnimation(float)

    Adjust scrolling position by own scrolling rules. Override this function when developer wants to change destination of flicking.(e.g. always snap to center of item)

    Declaration
    protected virtual float AdjustTargetPositionOfScrollAnimation(float position)
    Parameters
    Type Name Description
    float position
    Returns
    Type Description
    float
    View Source

    Decelerating(float, Animation)

    you can override it to custom your decelerating

    Declaration
    protected virtual void Decelerating(float velocity, Animation animation)
    Parameters
    Type Name Description
    float velocity

    Velocity of current pan.

    Animation animation

    Scroll animation.

    View Source

    Dispose(DisposeTypes)

    you can override it to clean-up your own resources.

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

    DisposeTypes

    Overrides
    Control.Dispose(DisposeTypes)
    View Source

    GetNextFocusableView(View, FocusDirection, bool)

    Gets the next keyboard focusable view in this control towards the given direction.
    A control needs to override this function in order to support two dimensional keyboard navigation.

    Declaration
    public override View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled)
    Parameters
    Type Name Description
    View currentFocusedView

    The current focused view.

    View.FocusDirection direction

    The direction to move the focus towards.

    bool loopEnabled

    Whether the focus movement should be looped within the control.

    Returns
    Type Description
    View

    The next keyboard focusable view in this control or null if no view can be focused.

    Overrides
    CustomView.GetNextFocusableView(View, View.FocusDirection, bool)
    View Source

    OnPreReachedTargetPosition(float)

    This helps developer who wants to know before scroll is reaching target position.

    Declaration
    protected virtual void OnPreReachedTargetPosition(float targetPosition)
    Parameters
    Type Name Description
    float targetPosition

    Index of item.

    View Source

    OnWheel(Wheel)

    Called after a wheel event is received by the owning view.
    CustomViewBehaviour.REQUIRES_WHEEL_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour).

    Declaration
    public override bool OnWheel(Wheel wheel)
    Parameters
    Type Name Description
    Wheel wheel

    The wheel event.

    Returns
    Type Description
    bool

    True if the wheel event should be consumed.

    Overrides
    CustomView.OnWheel(Wheel)
    View Source

    Remove(View)

    Called after a child has been removed from the owning view.

    Declaration
    public override void Remove(View view)
    Parameters
    Type Name Description
    View view

    The child which has been removed.

    Overrides
    View.Remove(View)
    View Source

    RemoveAllChildren(bool)

    Remove all children in ContentContainer.

    Declaration
    public void RemoveAllChildren(bool dispose = false)
    Parameters
    Type Name Description
    bool dispose

    If true, removed child is disposed.

    View Source

    ScrollTo(float, bool)

    Scroll to specific position with or without animation.

    Declaration
    public void ScrollTo(float position, bool animate)
    Parameters
    Type Name Description
    float position

    Destination.

    bool animate

    Scroll with or without animation

    View Source

    ScrollToIndex(int)

    Scrolls to the item at the specified index.

    Declaration
    public void ScrollToIndex(int index)
    Parameters
    Type Name Description
    int index

    Index of item.

    View Source

    SetScrollbar()

    The composition of a Scrollbar can vary depending on how you use ScrollableBase. Set the composition that will go into the ScrollableBase according to your ScrollableBase.

    Declaration
    protected virtual void SetScrollbar()
    View Source

    UpdateScrollbar()

    Declaration
    protected virtual void UpdateScrollbar()

    Events

    View Source

    ScrollAnimationEnded

    An event emitted when the scrolling slide animation ends, user can subscribe or unsubscribe to this event handler.

    Declaration
    public event EventHandler<ScrollEventArgs> ScrollAnimationEnded
    Event Type
    Type Description
    EventHandler<><ScrollEventArgs>
    View Source

    ScrollAnimationStarted

    An event emitted when the scrolling slide animation starts, user can subscribe or unsubscribe to this event handler.

    Declaration
    public event EventHandler<ScrollEventArgs> ScrollAnimationStarted
    Event Type
    Type Description
    EventHandler<><ScrollEventArgs>
    View Source

    ScrollDragEnded

    An event emitted when user stops dragging ScrollableBase, user can subscribe or unsubscribe to this event handler.

    Declaration
    public event EventHandler<ScrollEventArgs> ScrollDragEnded
    Event Type
    Type Description
    EventHandler<><ScrollEventArgs>
    View Source

    ScrollDragStarted

    An event emitted when user starts dragging ScrollableBase, user can subscribe or unsubscribe to this event handler.

    Declaration
    public event EventHandler<ScrollEventArgs> ScrollDragStarted
    Event Type
    Type Description
    EventHandler<><ScrollEventArgs>
    View Source

    Scrolling

    An event emitted when scrolling, user can subscribe or unsubscribe to this event handler.

    Declaration
    public event EventHandler<ScrollEventArgs> Scrolling
    Event Type
    Type Description
    EventHandler<><ScrollEventArgs>
    View Source

    ScrollOutOfBound

    An event emitted when scrolling out of bound, user can subscribe or unsubscribe to this event handler.

    Declaration
    public event EventHandler<ScrollOutOfBoundEventArgs> ScrollOutOfBound
    Event Type
    Type Description
    EventHandler<><ScrollOutOfBoundEventArgs>

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX