ScrollControllerAddScrollVelocityRequestedEventArgs 类

定义

IScrollController.AddScrollVelocityRequested 事件提供数据。

public ref class ScrollControllerAddScrollVelocityRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.UI.Xaml.Controls.Primitives.IScrollControllerAddScrollVelocityRequestedEventArgsFactory, 327680, "Microsoft.UI.Xaml.XamlContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ScrollControllerAddScrollVelocityRequestedEventArgs final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.UI.Xaml.Controls.Primitives.IScrollControllerAddScrollVelocityRequestedEventArgsFactory), 327680, "Microsoft.UI.Xaml.XamlContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ScrollControllerAddScrollVelocityRequestedEventArgs
Public NotInheritable Class ScrollControllerAddScrollVelocityRequestedEventArgs
继承
Object Platform::Object IInspectable ScrollControllerAddScrollVelocityRequestedEventArgs
属性

构造函数

ScrollControllerAddScrollVelocityRequestedEventArgs(Single, IReference<Single>)

使用指定的偏移速度和惯性衰减率初始化 ScrollControllerAddScrollVelocityRequestedEventArgs 类的新实例。

属性

CorrelationId

获取或设置与偏移量更改关联的关联 ID。

InertiaDecayRate

获取所请求滚动操作的惯性衰减率(介于 0.0 和 1.0 之间)。

OffsetVelocity

获取偏移量更改的请求速度。

适用于

另请参阅