Show / Hide Table of Contents

    Class AutoScroller

    Auto scroller which is automatically scrolls a scrollview to the bottom The scroll view can be activated by an UI element and deactivated by manually scrolling the view

    Inheritance
    Object
    AutoScroller
    Namespace: i5.Toolkit.Core.AppConsole
    Assembly: cs.temp.dll.dll
    Syntax
    public class AutoScroller

    Constructors

    AutoScroller(IScrollView, IRectangle, IActivateable)

    Creates a new instance of the auto scroller

    Declaration
    public AutoScroller(IScrollView scrollView, IRectangle content, IActivateable elementToStartScroller)
    Parameters
    Type Name Description
    IScrollView scrollView

    The view which should be scrolled

    IRectangle content

    The content rectangle inside of the scrollview

    IActivateable elementToStartScroller

    The interaction element which starts the scroller

    Properties

    ScrollerActive

    If true, the scroller will make sure that the scrollview is always scrolled to the bottom

    Declaration
    public bool ScrollerActive { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    NotifyScrollValueChanged()

    Notifies the scroller that the scroll view was changed This can be due to two reasons:

    1. The user scrolled the UI element
    2. The size of the scroll view's content changed
    Declaration
    public void NotifyScrollValueChanged()

    OnEnable()

    Scrolls the scrollview to the bottom when the object is enabled

    Declaration
    public void OnEnable()
    Back to top i5 Toolkit Documentation