C# Класс SilverFlow.Controls.Controllers.InertiaController

Calculates inertial motion of a dragged element.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetInertialMotionParameters ( Rect hostBounds, Rect windowBounds ) : InertialMotion

Gets inertial motion parameters: distance and duration.

MoveToPoint ( Point point ) : void

Saves the last position of the moved element.

StartMotion ( Point point ) : void

An element starts its motion.

Приватные методы

Метод Описание
EnsureEndPointInBounds ( Vector2 vector, Rect bounds ) : Vector2

Ensures the end point is in bounds.

Описание методов

GetInertialMotionParameters() публичный Метод

Gets inertial motion parameters: distance and duration.
public GetInertialMotionParameters ( Rect hostBounds, Rect windowBounds ) : InertialMotion
hostBounds System.Windows.Rect The host bounds.
windowBounds System.Windows.Rect The window bounds.
Результат InertialMotion

MoveToPoint() публичный Метод

Saves the last position of the moved element.
public MoveToPoint ( Point point ) : void
point Point Current position.
Результат void

StartMotion() публичный Метод

An element starts its motion.
public StartMotion ( Point point ) : void
point Point The starting point of the motion.
Результат void