199 references to Input
PresentationCore (168)
System\Windows\Input\AccessKeyManager.cs (5)
209
if (e.StagingItem.
Input
.Handled) return;
211
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
213
OnKeyDown((KeyEventArgs)e.StagingItem.
Input
);
215
else if (e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.TextInputEvent)
217
OnText((TextCompositionEventArgs)e.StagingItem.
Input
);
System\Windows\Input\Command\CommandDevice.cs (9)
58
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
85
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
87
if (!e.StagingItem.
Input
.Handled)
89
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
95
IInputElement commandTarget = e.StagingItem.
Input
.OriginalSource as IInputElement;
113
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent ||
114
e.StagingItem.
Input
.RoutedEvent == Mouse.MouseUpEvent ||
115
e.StagingItem.
Input
.RoutedEvent == Keyboard.GotKeyboardFocusEvent ||
116
e.StagingItem.
Input
.RoutedEvent == Keyboard.LostKeyboardFocusEvent)
System\Windows\Input\InputManager.cs (6)
746
InputEventArgs input = item.
Input
;
860
if(item.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
862
if(!item.
Input
.Handled)
864
InputReportEventArgs previewInputReport = (InputReportEventArgs) item.
Input
;
897
processInputEventArgs.StagingItem.
Input
.MarkAsUserInitiated();
912
processInputEventArgs.StagingItem.
Input
.ClearUserInitiated();
System\Windows\Input\KeyboardDevice.cs (14)
667
e.StagingItem.
Input
.Device = this;
758
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
762
KeyEventArgs args = (KeyEventArgs) e.StagingItem.
Input
;
782
else if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyUpEvent)
786
KeyEventArgs args = (KeyEventArgs) e.StagingItem.
Input
;
797
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
801
if(!e.StagingItem.
Input
.Handled)
803
KeyEventArgs previewKeyDown = (KeyEventArgs) e.StagingItem.
Input
;
852
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyUpEvent)
856
if(!e.StagingItem.
Input
.Handled)
858
KeyEventArgs previewKeyUp = (KeyEventArgs) e.StagingItem.
Input
;
910
if(!e.StagingItem.
Input
.Handled)
963
ChangeFocus(null, e.StagingItem.
Input
.Timestamp);
973
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
System\Windows\Input\ManipulationDevice.cs (1)
341
InputEventArgs inputEventArgs = e.StagingItem.
Input
;
System\Windows\Input\MouseDevice.cs (30)
1157
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
1159
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
1249
ChangeMouseOver(null, e.StagingItem.
Input
.Timestamp);
1319
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1321
MouseButtonEventArgs mouseButtonEventArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1335
else if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
1337
MouseButtonEventArgs mouseButtonEventArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1380
if ( e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent )
1382
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
1455
ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.
Input
.Timestamp);
1461
ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.
Input
.Timestamp);
1685
ChangeMouseOver(mouseOver, e.StagingItem.
Input
.Timestamp);
1783
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1785
MouseButtonEventArgs mouseButtonArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1817
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseWheelEvent)
1819
if (!e.StagingItem.
Input
.Handled)
1821
MouseWheelEventArgs previewWheel = (MouseWheelEventArgs) e.StagingItem.
Input
;
1836
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1838
if (!e.StagingItem.
Input
.Handled)
1840
MouseButtonEventArgs previewDown = (MouseButtonEventArgs) e.StagingItem.
Input
;
1849
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
1851
if (!e.StagingItem.
Input
.Handled)
1853
MouseButtonEventArgs previewUp = (MouseButtonEventArgs) e.StagingItem.
Input
;
1861
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseMoveEvent)
1863
if (!e.StagingItem.
Input
.Handled)
1865
MouseEventArgs previewMove = (MouseEventArgs) e.StagingItem.
Input
;
1874
if (e.StagingItem.
Input
.RoutedEvent == Mouse.QueryCursorEvent)
1876
QueryCursorEventArgs queryCursor = (QueryCursorEventArgs)e.StagingItem.
Input
;
1882
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
1884
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (18)
183
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
185
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
302
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
304
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
346
if (e.StagingItem.
Input
.RoutedEvent == Mouse.LostMouseCaptureEvent ||
347
e.StagingItem.
Input
.RoutedEvent == Mouse.GotMouseCaptureEvent)
362
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
364
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
1041
if (!e.StagingItem.
Input
.Handled)
1043
RoutedEvent eventMain = StylusLogic.GetMainEventFromPreviewEvent(e.StagingItem.
Input
.RoutedEvent);
1046
StylusEventArgs eventArgsPreview = (StylusEventArgs)e.StagingItem.
Input
;
1087
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1102
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1114
if (e.StagingItem.
Input
.Handled)
1280
if (args.StagingItem.
Input
.RoutedEvent == Stylus.PreviewStylusDownEvent)
1282
StylusEventArgs stylusDownEventArgs = args.StagingItem.
Input
as StylusDownEventArgs;
1317
else if (args.StagingItem.
Input
.RoutedEvent == Stylus.PreviewStylusSystemGestureEvent)
1319
StylusSystemGestureEventArgs stylusGestureEventArgs = args.StagingItem.
Input
as StylusSystemGestureEventArgs;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (12)
501
if (!e.StagingItem.
Input
.Handled)
505
if ((e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseDownEvent) &&
506
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent) &&
507
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseMoveEvent) &&
508
(e.StagingItem.
Input
.RoutedEvent != InputManager.InputReportEvent))
521
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
526
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
551
MouseEventArgs mouseEventArgs = e.StagingItem.
Input
as MouseEventArgs;
559
e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent)
562
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseMoveEvent)
568
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
575
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (45)
468
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
470
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
;
1321
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusMoveEvent)
1323
StylusEventArgs stylusMove = (StylusEventArgs)e.StagingItem.
Input
;
1333
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusSystemGestureEvent)
1335
StylusSystemGestureEventArgs stylusSystemGesture = (StylusSystemGestureEventArgs)e.StagingItem.
Input
;
1355
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusOutOfRangeEvent)
1357
var stylusArgs = e.StagingItem.
Input
as StylusEventArgs;
1408
if (!e.StagingItem.
Input
.Handled)
1410
RoutedEvent eventMain = StylusLogic.GetMainEventFromPreviewEvent(e.StagingItem.
Input
.RoutedEvent);
1413
StylusEventArgs eventArgsPreview = (StylusEventArgs)e.StagingItem.
Input
;
1454
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1466
StylusEventArgs stylusEventArgs = stagingItem.
Input
as StylusEventArgs;
1477
if (e.StagingItem.
Input
.Handled)
1497
else if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusSystemGestureEvent)
1595
storedStagingItems[stagingItemCount - 1].
Input
.RoutedEvent == Stylus.StylusMoveEvent)
1684
InputReportEventArgs inputReportArgs = stagingItem.
Input
as InputReportEventArgs;
1725
if (!stagingItem.
Input
.Handled)
1727
StylusEventArgs stylusArgs = stagingItem.
Input
as StylusEventArgs;
1742
RawMouseActions actions = stylusDevice.GetMouseActionsFromStylusEventAndPlaybackCachedDown(stagingItem.
Input
.RoutedEvent, stylusArgs);
1802
if (!e.StagingItem.
Input
.Handled)
1806
if ((e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseDownEvent) &&
1807
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent) &&
1808
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseMoveEvent) &&
1809
(e.StagingItem.
Input
.RoutedEvent != InputManager.InputReportEvent))
1822
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
1827
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
1852
MouseEventArgs mouseEventArgs = e.StagingItem.
Input
as MouseEventArgs;
1860
e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent)
1863
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseMoveEvent)
1869
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1876
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
2872
if (!e.StagingItem.
Input
.Handled)
2874
RoutedEvent routedEvent = e.StagingItem.
Input
.RoutedEvent;
2880
StylusEventArgs eventArgs = (StylusEventArgs)e.StagingItem.
Input
;
System\Windows\Input\TextCompositionManager.cs (18)
424
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
426
KeyEventArgs keyArgs = (KeyEventArgs) e.StagingItem.
Input
;
465
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
467
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
484
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent)
486
KeyEventArgs keyArgs = (KeyEventArgs) e.StagingItem.
Input
;
534
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputStartEvent)
536
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
547
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputUpdateEvent)
549
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
560
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputEvent)
562
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
573
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.TextInputStartEvent)
575
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
586
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.TextInputUpdateEvent)
588
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
604
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
664
TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.
Input
.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
System\Windows\Input\TextServicesManager.cs (9)
125
if(e.StagingItem.
Input
.RoutedEvent != Keyboard.PreviewKeyDownEvent &&
126
e.StagingItem.
Input
.RoutedEvent != Keyboard.PreviewKeyUpEvent)
147
keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
183
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent ||
184
e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyUpEvent)
190
keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
205
else if(e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent ||
206
e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent)
208
keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
System\Windows\Input\TouchDevice.cs (1)
999
InputEventArgs inputEventArgs = e.StagingItem.
Input
;
PresentationFramework (14)
System\Windows\Controls\PopupControlService.cs (13)
47
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
49
InputReportEventArgs report = (InputReportEventArgs)e.StagingItem.
Input
;
116
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
118
ProcessKeyDown(sender, (KeyEventArgs)e.StagingItem.
Input
);
120
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent)
122
ProcessKeyUp(sender, (KeyEventArgs)e.StagingItem.
Input
);
124
else if (e.StagingItem.
Input
.RoutedEvent == Mouse.MouseUpEvent)
126
ProcessMouseUp(sender, (MouseButtonEventArgs)e.StagingItem.
Input
);
128
else if (e.StagingItem.
Input
.RoutedEvent == Mouse.MouseDownEvent)
132
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.GotKeyboardFocusEvent)
134
ProcessGotKeyboardFocus(sender, (KeyboardFocusChangedEventArgs)e.StagingItem.
Input
);
136
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.LostKeyboardFocusEvent)
138
ProcessLostKeyboardFocus(sender, (KeyboardFocusChangedEventArgs)e.StagingItem.
Input
);
System\Windows\Input\KeyboardNavigation.cs (1)
1171
ProcessInput(e.StagingItem.
Input
);
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\KeyTipService.cs (7)
689
RoutedEvent routedEvent = e.StagingItem.
Input
.RoutedEvent;
692
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
706
OnPreviewTextInput((TextCompositionEventArgs)e.StagingItem.
Input
);
710
OnPreviewKeyDown((KeyEventArgs)e.StagingItem.
Input
);
714
e.StagingItem.
Input
.Handled = true;
721
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
723
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
Microsoft\Windows\Controls\Ribbon\RibbonToolTipService.cs (2)
36
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
38
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
WindowsFormsIntegration (8)
System\Windows\Integration\ElementHost.cs (4)
533
if (!e.StagingItem.
Input
.Handled && e.StagingItem.
Input
.RoutedEvent == SWI.TextCompositionManager.TextInputEvent)
535
SWI.TextCompositionEventArgs te = (SWI.TextCompositionEventArgs)e.StagingItem.
Input
;
543
e.StagingItem.
Input
.Handled = this.ProcessDialogChar(text[0]);
System\Windows\Integration\WindowsFormsHost.cs (4)
1021
if (!e.StagingItem.
Input
.Handled && e.StagingItem.
Input
.RoutedEvent == SWI.TextCompositionManager.TextInputEvent)
1023
SWI.TextCompositionEventArgs te = (SWI.TextCompositionEventArgs)e.StagingItem.
Input
;
1031
e.StagingItem.
Input
.Handled = this.ProcessDialogChar(text[0]);