MouseBinding Konstruktorok
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Inicializálja a MouseBinding osztály új példányát.
Túlterhelések
| Name | Description |
|---|---|
| MouseBinding() |
Inicializálja a MouseBinding osztály új példányát. |
| MouseBinding(ICommand, MouseGesture) |
Inicializálja az osztály új példányát MouseBinding a megadott paranccsal és egérmozdulattal. |
MouseBinding()
Inicializálja a MouseBinding osztály új példányát.
public:
MouseBinding();
public MouseBinding();
Public Sub New ()
Lásd még
A következőre érvényes:
MouseBinding(ICommand, MouseGesture)
Inicializálja az osztály új példányát MouseBinding a megadott paranccsal és egérmozdulattal.
public:
MouseBinding(System::Windows::Input::ICommand ^ command, System::Windows::Input::MouseGesture ^ gesture);
public MouseBinding(System.Windows.Input.ICommand command, System.Windows.Input.MouseGesture gesture);
new System.Windows.Input.MouseBinding : System.Windows.Input.ICommand * System.Windows.Input.MouseGesture -> System.Windows.Input.MouseBinding
Public Sub New (command As ICommand, gesture As MouseGesture)
Paraméterek
- command
- ICommand
A kézmozdulathoz társított parancs.
- gesture
- MouseGesture
A parancshoz társított kézmozdulat.
Példák
Az alábbi példa bemutatja, hogyan köthet össze egy ICommand felhasználóval.MouseGestureMouseAction
MouseGesture PasteCmdMouseGesture = new MouseGesture(
MouseAction.MiddleClick, ModifierKeys.Alt);
ApplicationCommands.Paste.InputGestures.Add(PasteCmdMouseGesture);
Dim PasteCmdMouseGesture As New MouseGesture(MouseAction.MiddleClick, ModifierKeys.Alt)
ApplicationCommands.Paste.InputGestures.Add(PasteCmdMouseGesture)