从 CanExecuteToolEventArgs 对象提供 MouseGestureData 对象。
命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public Shared Function FromEventArgs ( _
    e As CanExecuteToolEventArgs _
) As MouseGestureData
public static MouseGestureData FromEventArgs(
    CanExecuteToolEventArgs e
)
public:
static MouseGestureData^ FromEventArgs(
    CanExecuteToolEventArgs^ e
)
static member FromEventArgs : 
        e:CanExecuteToolEventArgs -> MouseGestureData 
public static function FromEventArgs(
    e : CanExecuteToolEventArgs
) : MouseGestureData
参数
- e
 类型:Microsoft.Windows.Design.Interaction.CanExecuteToolEventArgs
 传递给命令回调的 CanExecuteToolEventArgs 对象。
返回值
类型:Microsoft.Windows.Design.Interaction.MouseGestureData
包含在 CanExecuteToolEventArgs 对象的 Parameter 属性中的 MouseGestureData 对象。
异常
| 异常 | 条件 | 
|---|---|
| ArgumentNullException | e 为 nullnull 引用(在 Visual Basic 中为 Nothing)。 | 
备注
大多数命令都实现为 ExecuteEventHandler 回调。 这些回调具有一个称为“data”的属性,它表示命令的数据。 当笔势调用此命令时,这些数据作为一个 MouseGestureData 对象返回。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.Interaction 命名空间