PinchGestureUpdatedEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
PinchGestureUpdatedEventArgs(GestureStatus) |
构造具有默认值的新 PinchGestureUpdatedEventArgs 对象。 |
PinchGestureUpdatedEventArgs(GestureStatus, Double, Point) |
构造具有指定值的新 PinchGestureUpdatedEventArgs 对象。 |
PinchGestureUpdatedEventArgs(GestureStatus)
构造具有默认值的新 PinchGestureUpdatedEventArgs 对象。
public:
PinchGestureUpdatedEventArgs(Microsoft::Maui::GestureStatus status);
public PinchGestureUpdatedEventArgs(Microsoft.Maui.GestureStatus status);
new Microsoft.Maui.Controls.PinchGestureUpdatedEventArgs : Microsoft.Maui.GestureStatus -> Microsoft.Maui.Controls.PinchGestureUpdatedEventArgs
Public Sub New (status As GestureStatus)
参数
- status
- GestureStatus
新手势状态。
适用于
PinchGestureUpdatedEventArgs(GestureStatus, Double, Point)
构造具有指定值的新 PinchGestureUpdatedEventArgs 对象。
public:
PinchGestureUpdatedEventArgs(Microsoft::Maui::GestureStatus status, double scale, Microsoft::Maui::Graphics::Point origin);
public PinchGestureUpdatedEventArgs(Microsoft.Maui.GestureStatus status, double scale, Microsoft.Maui.Graphics.Point origin);
new Microsoft.Maui.Controls.PinchGestureUpdatedEventArgs : Microsoft.Maui.GestureStatus * double * Microsoft.Maui.Graphics.Point -> Microsoft.Maui.Controls.PinchGestureUpdatedEventArgs
Public Sub New (status As GestureStatus, scale As Double, origin As Point)
参数
- status
- GestureStatus
手势的状态为正在开始、正在进行还是已结束。
- scale
- Double
收缩手势的当前范围。
- origin
- Point
收缩手势的已更新的原点。
注解
捏合的起源是收缩手势的中心,如果用户在缩放时转换其收缩,则更改。 应用程序开发人员可能需要在手势开始时存储收缩源,并将其用于该手势的所有缩放操作。