←Select platform

DefaultCalculateInertia Property

Summary

The default inertia calculation function.

Syntax
C#
C++/CLI
public static CalculateInertiaCallback DefaultCalculateInertia { 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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.