199 references to Input
PresentationCore (168)
System\Windows\Input\AccessKeyManager.cs (5)
196
if (e.StagingItem.
Input
.Handled) return;
198
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
200
OnKeyDown((KeyEventArgs)e.StagingItem.
Input
);
202
else if (e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.TextInputEvent)
204
OnText((TextCompositionEventArgs)e.StagingItem.
Input
);
System\Windows\Input\Command\CommandDevice.cs (9)
50
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
77
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
79
if (!e.StagingItem.
Input
.Handled)
81
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
87
IInputElement commandTarget = e.StagingItem.
Input
.OriginalSource as IInputElement;
107
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent ||
108
e.StagingItem.
Input
.RoutedEvent == Mouse.MouseUpEvent ||
109
e.StagingItem.
Input
.RoutedEvent == Keyboard.GotKeyboardFocusEvent ||
110
e.StagingItem.
Input
.RoutedEvent == Keyboard.LostKeyboardFocusEvent)
System\Windows\Input\InputManager.cs (6)
737
InputEventArgs input = item.
Input
;
851
if(item.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
853
if(!item.
Input
.Handled)
855
InputReportEventArgs previewInputReport = (InputReportEventArgs) item.
Input
;
890
processInputEventArgs.StagingItem.
Input
.MarkAsUserInitiated();
905
processInputEventArgs.StagingItem.
Input
.ClearUserInitiated();
System\Windows\Input\KeyboardDevice.cs (14)
666
e.StagingItem.
Input
.Device = this;
754
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
758
KeyEventArgs args = (KeyEventArgs) e.StagingItem.
Input
;
778
else if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyUpEvent)
782
KeyEventArgs args = (KeyEventArgs) e.StagingItem.
Input
;
793
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
797
if(!e.StagingItem.
Input
.Handled)
799
KeyEventArgs previewKeyDown = (KeyEventArgs) e.StagingItem.
Input
;
848
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyUpEvent)
852
if(!e.StagingItem.
Input
.Handled)
854
KeyEventArgs previewKeyUp = (KeyEventArgs) e.StagingItem.
Input
;
906
if(!e.StagingItem.
Input
.Handled)
959
ChangeFocus(null, e.StagingItem.
Input
.Timestamp);
969
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
System\Windows\Input\ManipulationDevice.cs (1)
325
InputEventArgs inputEventArgs = e.StagingItem.
Input
;
System\Windows\Input\MouseDevice.cs (30)
1150
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
1152
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
1244
ChangeMouseOver(null, e.StagingItem.
Input
.Timestamp);
1318
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1320
MouseButtonEventArgs mouseButtonEventArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1336
else if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
1338
MouseButtonEventArgs mouseButtonEventArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1385
if ( e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent )
1387
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
1457
ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.
Input
.Timestamp);
1463
ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.
Input
.Timestamp);
1687
ChangeMouseOver(mouseOver, e.StagingItem.
Input
.Timestamp);
1785
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1787
MouseButtonEventArgs mouseButtonArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1819
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseWheelEvent)
1821
if (!e.StagingItem.
Input
.Handled)
1823
MouseWheelEventArgs previewWheel = (MouseWheelEventArgs) e.StagingItem.
Input
;
1840
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1842
if (!e.StagingItem.
Input
.Handled)
1844
MouseButtonEventArgs previewDown = (MouseButtonEventArgs) e.StagingItem.
Input
;
1855
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
1857
if (!e.StagingItem.
Input
.Handled)
1859
MouseButtonEventArgs previewUp = (MouseButtonEventArgs) e.StagingItem.
Input
;
1869
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseMoveEvent)
1871
if (!e.StagingItem.
Input
.Handled)
1873
MouseEventArgs previewMove = (MouseEventArgs) e.StagingItem.
Input
;
1884
if (e.StagingItem.
Input
.RoutedEvent == Mouse.QueryCursorEvent)
1886
QueryCursorEventArgs queryCursor = (QueryCursorEventArgs)e.StagingItem.
Input
;
1892
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
1894
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (18)
165
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
167
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
286
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
288
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
330
if (e.StagingItem.
Input
.RoutedEvent == Mouse.LostMouseCaptureEvent ||
331
e.StagingItem.
Input
.RoutedEvent == Mouse.GotMouseCaptureEvent)
346
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
348
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
1025
if (!e.StagingItem.
Input
.Handled)
1027
RoutedEvent eventMain = StylusLogic.GetMainEventFromPreviewEvent(e.StagingItem.
Input
.RoutedEvent);
1030
StylusEventArgs eventArgsPreview = (StylusEventArgs)e.StagingItem.
Input
;
1071
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1086
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1098
if (e.StagingItem.
Input
.Handled)
1264
if (args.StagingItem.
Input
.RoutedEvent == Stylus.PreviewStylusDownEvent)
1266
StylusEventArgs stylusDownEventArgs = args.StagingItem.
Input
as StylusDownEventArgs;
1301
else if (args.StagingItem.
Input
.RoutedEvent == Stylus.PreviewStylusSystemGestureEvent)
1303
StylusSystemGestureEventArgs stylusGestureEventArgs = args.StagingItem.
Input
as StylusSystemGestureEventArgs;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (12)
488
if (!e.StagingItem.
Input
.Handled)
492
if ((e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseDownEvent) &&
493
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent) &&
494
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseMoveEvent) &&
495
(e.StagingItem.
Input
.RoutedEvent != InputManager.InputReportEvent))
508
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
513
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
538
MouseEventArgs mouseEventArgs = e.StagingItem.
Input
as MouseEventArgs;
546
e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent)
549
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseMoveEvent)
555
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
562
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (45)
463
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
465
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
986
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
988
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
1055
if (e.StagingItem.
Input
.RoutedEvent == Stylus.PreviewStylusDownEvent)
1057
StylusEventArgs stylusDownEventArgs = e.StagingItem.
Input
as StylusDownEventArgs;
1148
if (e.StagingItem.
Input
.RoutedEvent == Mouse.LostMouseCaptureEvent ||
1149
e.StagingItem.
Input
.RoutedEvent == Mouse.GotMouseCaptureEvent)
1176
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
1178
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
1258
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusOutOfRangeEvent)
1262
StylusEventArgs eventArgsOutOfRange = (StylusEventArgs)e.StagingItem.
Input
;
1322
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusMoveEvent)
1324
StylusEventArgs stylusMove = (StylusEventArgs)e.StagingItem.
Input
;
1334
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusSystemGestureEvent)
1336
StylusSystemGestureEventArgs stylusSystemGesture = (StylusSystemGestureEventArgs)e.StagingItem.
Input
;
1356
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusOutOfRangeEvent)
1358
var stylusArgs = e.StagingItem.
Input
as StylusEventArgs;
1409
if (!e.StagingItem.
Input
.Handled)
1411
RoutedEvent eventMain = StylusLogic.GetMainEventFromPreviewEvent(e.StagingItem.
Input
.RoutedEvent);
1414
StylusEventArgs eventArgsPreview = (StylusEventArgs)e.StagingItem.
Input
;
1455
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1467
StylusEventArgs stylusEventArgs = stagingItem.
Input
as StylusEventArgs;
1478
if (e.StagingItem.
Input
.Handled)
1498
else if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusSystemGestureEvent)
1596
storedStagingItems[stagingItemCount - 1].
Input
.RoutedEvent == Stylus.StylusMoveEvent)
1685
InputReportEventArgs inputReportArgs = stagingItem.
Input
as InputReportEventArgs;
1726
if (!stagingItem.
Input
.Handled)
1728
StylusEventArgs stylusArgs = stagingItem.
Input
as StylusEventArgs;
1743
RawMouseActions actions = stylusDevice.GetMouseActionsFromStylusEventAndPlaybackCachedDown(stagingItem.
Input
.RoutedEvent, stylusArgs);
1805
if (!e.StagingItem.
Input
.Handled)
1809
if ((e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseDownEvent) &&
1810
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent) &&
1811
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseMoveEvent) &&
1812
(e.StagingItem.
Input
.RoutedEvent != InputManager.InputReportEvent))
1825
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
1830
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
1855
MouseEventArgs mouseEventArgs = e.StagingItem.
Input
as MouseEventArgs;
1863
e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent)
1866
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseMoveEvent)
1872
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1879
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
2883
if (!e.StagingItem.
Input
.Handled)
2885
RoutedEvent routedEvent = e.StagingItem.
Input
.RoutedEvent;
2891
StylusEventArgs eventArgs = (StylusEventArgs)e.StagingItem.
Input
;
System\Windows\Input\TextCompositionManager.cs (18)
426
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
428
KeyEventArgs keyArgs = (KeyEventArgs) e.StagingItem.
Input
;
467
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
469
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
486
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent)
488
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
533
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputStartEvent)
535
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
548
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputUpdateEvent)
550
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
563
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputEvent)
565
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
578
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.TextInputStartEvent)
580
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
591
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.TextInputUpdateEvent)
593
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
609
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
669
TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.
Input
.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
System\Windows\Input\TextServicesManager.cs (9)
121
if(e.StagingItem.
Input
.RoutedEvent != Keyboard.PreviewKeyDownEvent &&
122
e.StagingItem.
Input
.RoutedEvent != Keyboard.PreviewKeyUpEvent)
143
keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
179
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent ||
180
e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyUpEvent)
186
keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
201
else if(e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent ||
202
e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent)
204
keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
System\Windows\Input\TouchDevice.cs (1)
988
InputEventArgs inputEventArgs = e.StagingItem.
Input
;
PresentationFramework (14)
System\Windows\Controls\PopupControlService.cs (13)
36
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
38
InputReportEventArgs report = (InputReportEventArgs)e.StagingItem.
Input
;
105
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
107
ProcessKeyDown(sender, (KeyEventArgs)e.StagingItem.
Input
);
109
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent)
111
ProcessKeyUp(sender, (KeyEventArgs)e.StagingItem.
Input
);
113
else if (e.StagingItem.
Input
.RoutedEvent == Mouse.MouseUpEvent)
115
ProcessMouseUp(sender, (MouseButtonEventArgs)e.StagingItem.
Input
);
117
else if (e.StagingItem.
Input
.RoutedEvent == Mouse.MouseDownEvent)
121
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.GotKeyboardFocusEvent)
123
ProcessGotKeyboardFocus(sender, (KeyboardFocusChangedEventArgs)e.StagingItem.
Input
);
125
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.LostKeyboardFocusEvent)
127
ProcessLostKeyboardFocus(sender, (KeyboardFocusChangedEventArgs)e.StagingItem.
Input
);
System\Windows\Input\KeyboardNavigation.cs (1)
1162
ProcessInput(e.StagingItem.
Input
);
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\KeyTipService.cs (7)
683
RoutedEvent routedEvent = e.StagingItem.
Input
.RoutedEvent;
686
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
700
OnPreviewTextInput((TextCompositionEventArgs)e.StagingItem.
Input
);
704
OnPreviewKeyDown((KeyEventArgs)e.StagingItem.
Input
);
708
e.StagingItem.
Input
.Handled = true;
715
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
717
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
Microsoft\Windows\Controls\Ribbon\RibbonToolTipService.cs (2)
34
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
36
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
WindowsFormsIntegration (8)
System\Windows\Integration\ElementHost.cs (4)
525
if (!e.StagingItem.
Input
.Handled && e.StagingItem.
Input
.RoutedEvent == SWI.TextCompositionManager.TextInputEvent)
527
SWI.TextCompositionEventArgs te = (SWI.TextCompositionEventArgs)e.StagingItem.
Input
;
535
e.StagingItem.
Input
.Handled = this.ProcessDialogChar(text[0]);
System\Windows\Integration\WindowsFormsHost.cs (4)
997
if (!e.StagingItem.
Input
.Handled && e.StagingItem.
Input
.RoutedEvent == SWI.TextCompositionManager.TextInputEvent)
999
SWI.TextCompositionEventArgs te = (SWI.TextCompositionEventArgs)e.StagingItem.
Input
;
1007
e.StagingItem.
Input
.Handled = this.ProcessDialogChar(text[0]);