WheelGestureData.FromEventArgs 方法 (ExecutedToolEventArgs)

[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]

ExecutedToolEventArgs 对象提供 WheelGestureData 对象。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public Shared Function FromEventArgs ( _
    e As ExecutedToolEventArgs _
) As WheelGestureData
public static WheelGestureData FromEventArgs(
    ExecutedToolEventArgs e
)
public:
static WheelGestureData^ FromEventArgs(
    ExecutedToolEventArgs^ e
)
static member FromEventArgs : 
        e:ExecutedToolEventArgs -> WheelGestureData 
public static function FromEventArgs(
    e : ExecutedToolEventArgs
) : WheelGestureData

参数

返回值

类型:Microsoft.Windows.Design.Interaction.WheelGestureData
包含在 ExecutedToolEventArgs 对象的 Parameter 属性中的 WheelGestureData 对象。

异常

异常 条件
ArgumentNullException

e 为 nulla null reference (Nothing in Visual Basic)。

备注

大多数命令都实现为 ExecuteEventHandler 回调。 这些回调具有一个称为“data”的属性,它表示命令的数据。 当笔势调用此命令时,这些数据作为一个 WheelGestureData 对象返回。

.NET Framework 安全性

请参见

参考

WheelGestureData 类

FromEventArgs 重载

Microsoft.Windows.Design.Interaction 命名空间

其他资源

了解 WPF 设计器扩展性