←Select platform

CalculateInertia Property

Summary

When non-null, used to calculate the inertia scroll offset.

Syntax
C#
VB
C++
public CalculateInertiaCallback CalculateInertia { get; set; } 
Public Property CalculateInertia() As CalculateInertiaCallback 
   Get 
   Set 
public:  
   property CalculateInertiaCallback^ CalculateInertia 
   { 
      CalculateInertiaCallback^ get() 
      void set(CalculateInertiaCallback^ value) 
   } 

Property Value

A CalculateInertiaCallback that will calculate the inertia scroll deceration offsets. The default value is DefaultCalculateInertia. If null, DefaultCalculateInertia is used.

Remarks

DefaultCalculateInertia makes use of the values of DefaultBezierPoint1, DefaultBezierPoint2, DefaultDuration, and DefaultPower to return the new inertia scroll offset. The Bézier function is defined by the four points (0,0), DefaultBezierPoint1, DefaultBezierPoint2, (1,1) and defines the percent of total distance for the inertia animation.

CalculateInertia can make use of the properties in InertiaParams, specifically InertiaParams.Amplitude, InertiaParams.Velocity, and InertiaParams.ReasonTimestamp, to completely control how any individual inertia scroll will animate.

InertiaParams.Stop must be used to end the inertia scroll. Failure to set InertiaParams.Stop to true may cause the inertia scroll to run indefinitely.

Requirements

Target Platforms

Help Version 20.0.2019.3.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly