Class ScrollableBase
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 8
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, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
- Inheritance
-
Tizen.NUI.Binding.BindableObjectTizen.NUI.Binding.ElementTizen.NUI.Components.ControlScrollableBase
- Implements
Constructors
View SourceScrollableBase()
Default Constructor
Declaration
public ScrollableBase()
API Level: 8
Properties
View SourceChildren
List of children of Container.
Declaration
public List<View> Children { get; }
Property Value
Type | Description |
---|---|
List<View> |
API Level: 8
View SourceContentContainer
Container which has content of ScrollableBase.
Declaration
public View ContentContainer { get; }
Property Value
Type | Description |
---|---|
View |
API Level: 8
View SourceCurrentPage
Get current page. Working property with SnapToPage property.
Declaration
public int CurrentPage { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 8
View SourceDecelerationRate
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 |
---|---|
Single |
API Level: 8
View SourceHideScrollbar
Always hide Scrollbar.
Declaration
public bool HideScrollbar { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 8
View SourceLayout
Set the layout on this View. Replaces any existing Layout.
Declaration
public LayoutItem Layout { get; set; }
Property Value
Type | Description |
---|---|
LayoutItem |
API Level: 8
View SourcePageFlickThreshold
Page will be changed when velocity of panning is over threshold. The unit of threshold is pixel per milisec.
Declaration
public float PageFlickThreshold { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 8
View SourceScrollAvailableArea
Scroll Available area.
Declaration
public Vector2 ScrollAvailableArea { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
API Level: 8
View SourceScrollbar
Scrollbar for ScrollableBase.
Declaration
public ScrollbarBase Scrollbar { get; set; }
Property Value
Type | Description |
---|---|
Tizen.NUI.Components.ScrollbarBase |
API Level: 8
View SourceScrollCurrentPosition
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 |
API Level: 8
View SourceScrollDuration
Duration of scroll animation. Default value is 125ms.
Declaration
public int ScrollDuration { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 8
View SourceScrollEnabled
Enable or disable scrolling.
Declaration
public bool ScrollEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 8
View SourceScrollingDirection
Scrolling direction mode. Default is Vertical scrolling.
Declaration
public ScrollableBase.Direction ScrollingDirection { get; set; }
Property Value
Type | Description |
---|---|
ScrollableBase.Direction |
API Level: 8
View SourceScrollPosition
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 |
API Level: 8
View SourceSnapToPage
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 |
---|---|
Boolean |
API Level: 8
Methods
View SourceAdd(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
API Level: 8
View SourceRemove(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
API Level: 8
View SourceScrollTo(Single, Boolean)
Scroll to specific position with or without animation.
Declaration
public void ScrollTo(float position, bool animate)
Parameters
Type | Name | Description |
---|---|---|
Single | position | Destination. |
Boolean | animate | Scroll with or without animation |
API Level: 8
View SourceScrollToIndex(Int32)
Scrolls to the item at the specified index.
Declaration
public void ScrollToIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of item. |
API Level: 8
Events
View SourceScrollAnimationEnded
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> |
API Level: 8
View SourceScrollAnimationStarted
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> |
API Level: 8
View SourceScrollDragEnded
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> |
API Level: 8
View SourceScrollDragStarted
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> |
API Level: 8
View SourceScrolling
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> |