次の方法で共有


DesignerView.MatchGesture イベント

DesignerView がユーザー入力ジェスチャをコマンドと照合するときに発生します。

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

構文

'宣言
Public Event MatchGesture As EventHandler(Of MatchGestureEventArgs)
public event EventHandler<MatchGestureEventArgs> MatchGesture
public:
 event EventHandler<MatchGestureEventArgs^>^ MatchGesture {
    void add (EventHandler<MatchGestureEventArgs^>^ value);
    void remove (EventHandler<MatchGestureEventArgs^>^ value);
}
member MatchGesture : IEvent<EventHandler<MatchGestureEventArgs>,
    MatchGestureEventArgs>
JScript では、イベントは使用できません。

解説

このイベントのイベント ハンドラー内で、実行されるコマンドを変更できます。 また、コマンドに渡される位置情報と、その他のジェスチャ情報を変更することもできます。 入力バインディングを nullnull 参照 (Visual Basic では Nothing) に設定した場合、コマンドは実行されません。

.NET Framework セキュリティ

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

参照

参照

DesignerView クラス

Microsoft.Windows.Design.Interaction 名前空間

AdornerPanel

その他の技術情報

チュートリアル : デザイン時装飾の作成

装飾アーキテクチャ