←Select platform

DefaultCalculateInertia Property

Summary

The default inertia calculation function.

Syntax
C#
VB
C++
public static CalculateInertiaCallback DefaultCalculateInertia { get; } 
Public Shared ReadOnly Property DefaultCalculateInertia() As CalculateInertiaCallback 
   Get 
public:  
   static property CalculateInertiaCallback^ DefaultCalculateInertia 
   { 
      CalculateInertiaCallback^ get() 
   } 

Property Value

A CalculateInertiaCallback that uses a cubic Bézier function to calculate the inertia scroll offsets.

Remarks

DefaultCalculateInertia is the default cubic Bézier inertia scroll function. It 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. This animation is modeled roughly after the iOS momentum scroll animation.

A custom CalculateInertiaCallback can be set to CalculateInertia. If CalculateInertia is null, DefaultCalculateInertia is used.

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