AnimationKit.ScrollTask

Inherits from AnimationKit.Task.

This class is used to animate scrolling behaviors for any class which implements the AnimationKit.Scrollable interface. Delegate classes are built-in to support scrolling the ScrollBar, TextArea, and Listbox controls.

Constructors

Target As AnimationKit.Scrollable

Creates the task using a class which implements the AnimationKit.Scrollable interface.

Target As Listbox

Creates the task using using the provided Listbox. The Position property links to the Listbox.ScrollPosition property. Minimum and Maximum properties have no effect on Listbox controls.

Target As ScrollBar

Creates the task using using the provided Scrollbar. The Position property links to the ScrollBar.Value property.

Target As TextArea

Creates the task using using the provided TextArea. The Position property links to the TextArea.ScrollPosition property. Minimum and Maximum properties have no effect on TextArea controls.

Properties

AnimateMaximum As Boolean = False

When true, the target's Maximum property will be animated.

AnimateMinimum As Boolean = False

When true, the target's Minimum property will be animated.

AnimatePosition As Boolean = False

When true, the target's Position property will be animated.

Curve As AnimationKit.Curve = AnimationKit.Curve.CreateLinear()

The timing curve to use for this animation.

DurationInSeconds As Double = 1.0

Number of seconds the animation will require to complete.

Maximum As Double = Target.Maximum

The final scroll maximum of the target. Changing this value automatically sets AnimateMaximum to True.

Minimum As Double = Target.Minimum

The final scroll minimum of the target. Changing this value automatically sets AnimateMinimum to True.

Position As Double = Target.Position

The final scroll position of the target. Changing this value automatically sets AnimatePosition to True.

Methods

Sub EnableValues (ParamArray Keys() As UInt64)

Pass one or more of the Key constants to enable property animations in bulk.

Sub DisableValues (ParamArray Keys() As UInt64)

Pass one or more of the Key constants to disable property animations in bulk.

Constants

Const KeyMaximum = 2
Const KeyMinimum = 1
Const KeyPosition = 4

See Also

AnimationKit.Scrollable, AnimationKit.Curve