次の方法で共有


DragGestureData.FromEventArgs メソッド (ExecutedToolEventArgs)

ExecutedToolEventArgs オブジェクトから DragGestureData を返す単純なユーティリティを提供します。

名前空間:  Microsoft.Windows.Design.Interaction
アセンブリ:  Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)

構文

'宣言
Public Shared Function FromEventArgs ( _
    e As ExecutedToolEventArgs _
) As DragGestureData
public static DragGestureData FromEventArgs(
    ExecutedToolEventArgs e
)
public:
static DragGestureData^ FromEventArgs(
    ExecutedToolEventArgs^ e
)
static member FromEventArgs : 
        e:ExecutedToolEventArgs -> DragGestureData 
public static function FromEventArgs(
    e : ExecutedToolEventArgs
) : DragGestureData

パラメーター

戻り値

型: Microsoft.Windows.Design.Interaction.DragGestureData
ExecutedToolEventArgs オブジェクトの Parameter プロパティに格納された DragGestureData オブジェクト。

例外

例外 条件
ArgumentNullException

e は nullnull 参照 (Visual Basic では Nothing) なので、

解説

ほとんどのコマンドは、ExecuteEventHandler コールバックとして実装されます。 これらのコールバックには "data" と呼ばれる、コマンドのデータを表す単一のプロパティがあります。 このデータは、ジェスチャによってコマンドが呼び出されると、DragGestureData オブジェクトとして返されます。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

DragGestureData クラス

FromEventArgs オーバーロード

Microsoft.Windows.Design.Interaction 名前空間

その他の技術情報

WPF デザイナーの機能拡張について