199 references to Input
PresentationCore (168)
System\Windows\Input\AccessKeyManager.cs (5)
197
if (e.StagingItem.
Input
.Handled) return;
199
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
201
OnKeyDown((KeyEventArgs)e.StagingItem.
Input
);
203
else if (e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.TextInputEvent)
205
OnText((TextCompositionEventArgs)e.StagingItem.
Input
);
System\Windows\Input\Command\CommandDevice.cs (9)
51
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
78
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
80
if (!e.StagingItem.
Input
.Handled)
82
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
88
IInputElement commandTarget = e.StagingItem.
Input
.OriginalSource as IInputElement;
108
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent ||
109
e.StagingItem.
Input
.RoutedEvent == Mouse.MouseUpEvent ||
110
e.StagingItem.
Input
.RoutedEvent == Keyboard.GotKeyboardFocusEvent ||
111
e.StagingItem.
Input
.RoutedEvent == Keyboard.LostKeyboardFocusEvent)
System\Windows\Input\InputManager.cs (6)
738
InputEventArgs input = item.
Input
;
852
if(item.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
854
if(!item.
Input
.Handled)
856
InputReportEventArgs previewInputReport = (InputReportEventArgs) item.
Input
;
891
processInputEventArgs.StagingItem.
Input
.MarkAsUserInitiated();
906
processInputEventArgs.StagingItem.
Input
.ClearUserInitiated();
System\Windows\Input\KeyboardDevice.cs (14)
667
e.StagingItem.
Input
.Device = this;
755
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
759
KeyEventArgs args = (KeyEventArgs) e.StagingItem.
Input
;
779
else if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyUpEvent)
783
KeyEventArgs args = (KeyEventArgs) e.StagingItem.
Input
;
794
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
798
if(!e.StagingItem.
Input
.Handled)
800
KeyEventArgs previewKeyDown = (KeyEventArgs) e.StagingItem.
Input
;
849
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyUpEvent)
853
if(!e.StagingItem.
Input
.Handled)
855
KeyEventArgs previewKeyUp = (KeyEventArgs) e.StagingItem.
Input
;
907
if(!e.StagingItem.
Input
.Handled)
960
ChangeFocus(null, e.StagingItem.
Input
.Timestamp);
970
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
System\Windows\Input\ManipulationDevice.cs (1)
326
InputEventArgs inputEventArgs = e.StagingItem.
Input
;
System\Windows\Input\MouseDevice.cs (30)
1151
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
1153
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
1245
ChangeMouseOver(null, e.StagingItem.
Input
.Timestamp);
1319
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1321
MouseButtonEventArgs mouseButtonEventArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1337
else if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
1339
MouseButtonEventArgs mouseButtonEventArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1386
if ( e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent )
1388
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
1458
ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.
Input
.Timestamp);
1464
ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.
Input
.Timestamp);
1688
ChangeMouseOver(mouseOver, e.StagingItem.
Input
.Timestamp);
1786
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1788
MouseButtonEventArgs mouseButtonArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1820
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseWheelEvent)
1822
if (!e.StagingItem.
Input
.Handled)
1824
MouseWheelEventArgs previewWheel = (MouseWheelEventArgs) e.StagingItem.
Input
;
1841
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1843
if (!e.StagingItem.
Input
.Handled)
1845
MouseButtonEventArgs previewDown = (MouseButtonEventArgs) e.StagingItem.
Input
;
1856
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
1858
if (!e.StagingItem.
Input
.Handled)
1860
MouseButtonEventArgs previewUp = (MouseButtonEventArgs) e.StagingItem.
Input
;
1870
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseMoveEvent)
1872
if (!e.StagingItem.
Input
.Handled)
1874
MouseEventArgs previewMove = (MouseEventArgs) e.StagingItem.
Input
;
1885
if (e.StagingItem.
Input
.RoutedEvent == Mouse.QueryCursorEvent)
1887
QueryCursorEventArgs queryCursor = (QueryCursorEventArgs)e.StagingItem.
Input
;
1893
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
1895
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (18)
166
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
168
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
287
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
289
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
331
if (e.StagingItem.
Input
.RoutedEvent == Mouse.LostMouseCaptureEvent ||
332
e.StagingItem.
Input
.RoutedEvent == Mouse.GotMouseCaptureEvent)
347
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
349
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
1026
if (!e.StagingItem.
Input
.Handled)
1028
RoutedEvent eventMain = StylusLogic.GetMainEventFromPreviewEvent(e.StagingItem.
Input
.RoutedEvent);
1031
StylusEventArgs eventArgsPreview = (StylusEventArgs)e.StagingItem.
Input
;
1072
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1087
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1099
if (e.StagingItem.
Input
.Handled)
1265
if (args.StagingItem.
Input
.RoutedEvent == Stylus.PreviewStylusDownEvent)
1267
StylusEventArgs stylusDownEventArgs = args.StagingItem.
Input
as StylusDownEventArgs;
1302
else if (args.StagingItem.
Input
.RoutedEvent == Stylus.PreviewStylusSystemGestureEvent)
1304
StylusSystemGestureEventArgs stylusGestureEventArgs = args.StagingItem.
Input
as StylusSystemGestureEventArgs;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (12)
489
if (!e.StagingItem.
Input
.Handled)
493
if ((e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseDownEvent) &&
494
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent) &&
495
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseMoveEvent) &&
496
(e.StagingItem.
Input
.RoutedEvent != InputManager.InputReportEvent))
509
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
514
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
539
MouseEventArgs mouseEventArgs = e.StagingItem.
Input
as MouseEventArgs;
547
e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent)
550
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseMoveEvent)
556
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
563
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (45)
464
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
466
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
987
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
989
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
1056
if (e.StagingItem.
Input
.RoutedEvent == Stylus.PreviewStylusDownEvent)
1058
StylusEventArgs stylusDownEventArgs = e.StagingItem.
Input
as StylusDownEventArgs;
1149
if (e.StagingItem.
Input
.RoutedEvent == Mouse.LostMouseCaptureEvent ||
1150
e.StagingItem.
Input
.RoutedEvent == Mouse.GotMouseCaptureEvent)
1177
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
1179
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
1259
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusOutOfRangeEvent)
1263
StylusEventArgs eventArgsOutOfRange = (StylusEventArgs)e.StagingItem.
Input
;
1323
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusMoveEvent)
1325
StylusEventArgs stylusMove = (StylusEventArgs)e.StagingItem.
Input
;
1335
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusSystemGestureEvent)
1337
StylusSystemGestureEventArgs stylusSystemGesture = (StylusSystemGestureEventArgs)e.StagingItem.
Input
;
1357
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusOutOfRangeEvent)
1359
var stylusArgs = e.StagingItem.
Input
as StylusEventArgs;
1410
if (!e.StagingItem.
Input
.Handled)
1412
RoutedEvent eventMain = StylusLogic.GetMainEventFromPreviewEvent(e.StagingItem.
Input
.RoutedEvent);
1415
StylusEventArgs eventArgsPreview = (StylusEventArgs)e.StagingItem.
Input
;
1456
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1468
StylusEventArgs stylusEventArgs = stagingItem.
Input
as StylusEventArgs;
1479
if (e.StagingItem.
Input
.Handled)
1499
else if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusSystemGestureEvent)
1597
storedStagingItems[stagingItemCount - 1].
Input
.RoutedEvent == Stylus.StylusMoveEvent)
1686
InputReportEventArgs inputReportArgs = stagingItem.
Input
as InputReportEventArgs;
1727
if (!stagingItem.
Input
.Handled)
1729
StylusEventArgs stylusArgs = stagingItem.
Input
as StylusEventArgs;
1744
RawMouseActions actions = stylusDevice.GetMouseActionsFromStylusEventAndPlaybackCachedDown(stagingItem.
Input
.RoutedEvent, stylusArgs);
1806
if (!e.StagingItem.
Input
.Handled)
1810
if ((e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseDownEvent) &&
1811
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent) &&
1812
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseMoveEvent) &&
1813
(e.StagingItem.
Input
.RoutedEvent != InputManager.InputReportEvent))
1826
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
1831
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
1856
MouseEventArgs mouseEventArgs = e.StagingItem.
Input
as MouseEventArgs;
1864
e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent)
1867
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseMoveEvent)
1873
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1880
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
2884
if (!e.StagingItem.
Input
.Handled)
2886
RoutedEvent routedEvent = e.StagingItem.
Input
.RoutedEvent;
2892
StylusEventArgs eventArgs = (StylusEventArgs)e.StagingItem.
Input
;
System\Windows\Input\TextCompositionManager.cs (18)
414
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
416
KeyEventArgs keyArgs = (KeyEventArgs) e.StagingItem.
Input
;
455
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
457
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
474
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent)
476
KeyEventArgs keyArgs = (KeyEventArgs) e.StagingItem.
Input
;
524
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputStartEvent)
526
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
539
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputUpdateEvent)
541
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
554
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputEvent)
556
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
569
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.TextInputStartEvent)
571
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
582
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.TextInputUpdateEvent)
584
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
600
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
660
TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.
Input
.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
System\Windows\Input\TextServicesManager.cs (9)
122
if(e.StagingItem.
Input
.RoutedEvent != Keyboard.PreviewKeyDownEvent &&
123
e.StagingItem.
Input
.RoutedEvent != Keyboard.PreviewKeyUpEvent)
144
keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
180
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent ||
181
e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyUpEvent)
187
keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
202
else if(e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent ||
203
e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent)
205
keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
System\Windows\Input\TouchDevice.cs (1)
989
InputEventArgs inputEventArgs = e.StagingItem.
Input
;
PresentationFramework (14)
System\Windows\Controls\PopupControlService.cs (13)
37
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
39
InputReportEventArgs report = (InputReportEventArgs)e.StagingItem.
Input
;
106
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
108
ProcessKeyDown(sender, (KeyEventArgs)e.StagingItem.
Input
);
110
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent)
112
ProcessKeyUp(sender, (KeyEventArgs)e.StagingItem.
Input
);
114
else if (e.StagingItem.
Input
.RoutedEvent == Mouse.MouseUpEvent)
116
ProcessMouseUp(sender, (MouseButtonEventArgs)e.StagingItem.
Input
);
118
else if (e.StagingItem.
Input
.RoutedEvent == Mouse.MouseDownEvent)
122
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.GotKeyboardFocusEvent)
124
ProcessGotKeyboardFocus(sender, (KeyboardFocusChangedEventArgs)e.StagingItem.
Input
);
126
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.LostKeyboardFocusEvent)
128
ProcessLostKeyboardFocus(sender, (KeyboardFocusChangedEventArgs)e.StagingItem.
Input
);
System\Windows\Input\KeyboardNavigation.cs (1)
1164
ProcessInput(e.StagingItem.
Input
);
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\KeyTipService.cs (7)
684
RoutedEvent routedEvent = e.StagingItem.
Input
.RoutedEvent;
687
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
701
OnPreviewTextInput((TextCompositionEventArgs)e.StagingItem.
Input
);
705
OnPreviewKeyDown((KeyEventArgs)e.StagingItem.
Input
);
709
e.StagingItem.
Input
.Handled = true;
716
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
718
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
Microsoft\Windows\Controls\Ribbon\RibbonToolTipService.cs (2)
35
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
37
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
WindowsFormsIntegration (8)
System\Windows\Integration\ElementHost.cs (4)
526
if (!e.StagingItem.
Input
.Handled && e.StagingItem.
Input
.RoutedEvent == SWI.TextCompositionManager.TextInputEvent)
528
SWI.TextCompositionEventArgs te = (SWI.TextCompositionEventArgs)e.StagingItem.
Input
;
536
e.StagingItem.
Input
.Handled = this.ProcessDialogChar(text[0]);
System\Windows\Integration\WindowsFormsHost.cs (4)
998
if (!e.StagingItem.
Input
.Handled && e.StagingItem.
Input
.RoutedEvent == SWI.TextCompositionManager.TextInputEvent)
1000
SWI.TextCompositionEventArgs te = (SWI.TextCompositionEventArgs)e.StagingItem.
Input
;
1008
e.StagingItem.
Input
.Handled = this.ProcessDialogChar(text[0]);