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;
106
else if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent ||
107
e.StagingItem.
Input
.RoutedEvent == Mouse.MouseUpEvent ||
108
e.StagingItem.
Input
.RoutedEvent == Keyboard.GotKeyboardFocusEvent ||
109
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
;
889
processInputEventArgs.StagingItem.
Input
.MarkAsUserInitiated();
904
processInputEventArgs.StagingItem.
Input
.ClearUserInitiated();
System\Windows\Input\KeyboardDevice.cs (14)
658
e.StagingItem.
Input
.Device = this;
749
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
753
KeyEventArgs args = (KeyEventArgs) e.StagingItem.
Input
;
773
else if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyUpEvent)
777
KeyEventArgs args = (KeyEventArgs) e.StagingItem.
Input
;
788
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
792
if(!e.StagingItem.
Input
.Handled)
794
KeyEventArgs previewKeyDown = (KeyEventArgs) e.StagingItem.
Input
;
843
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyUpEvent)
847
if(!e.StagingItem.
Input
.Handled)
849
KeyEventArgs previewKeyUp = (KeyEventArgs) e.StagingItem.
Input
;
901
if(!e.StagingItem.
Input
.Handled)
954
ChangeFocus(null, e.StagingItem.
Input
.Timestamp);
964
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
System\Windows\Input\ManipulationDevice.cs (1)
332
InputEventArgs inputEventArgs = e.StagingItem.
Input
;
System\Windows\Input\MouseDevice.cs (30)
1148
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
1150
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
1240
ChangeMouseOver(null, e.StagingItem.
Input
.Timestamp);
1310
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1312
MouseButtonEventArgs mouseButtonEventArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1326
else if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
1328
MouseButtonEventArgs mouseButtonEventArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1371
if ( e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent )
1373
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
1446
ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.
Input
.Timestamp);
1452
ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.
Input
.Timestamp);
1676
ChangeMouseOver(mouseOver, e.StagingItem.
Input
.Timestamp);
1774
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1776
MouseButtonEventArgs mouseButtonArgs = e.StagingItem.
Input
as MouseButtonEventArgs;
1808
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseWheelEvent)
1810
if (!e.StagingItem.
Input
.Handled)
1812
MouseWheelEventArgs previewWheel = (MouseWheelEventArgs) e.StagingItem.
Input
;
1827
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1829
if (!e.StagingItem.
Input
.Handled)
1831
MouseButtonEventArgs previewDown = (MouseButtonEventArgs) e.StagingItem.
Input
;
1840
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
1842
if (!e.StagingItem.
Input
.Handled)
1844
MouseButtonEventArgs previewUp = (MouseButtonEventArgs) e.StagingItem.
Input
;
1852
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseMoveEvent)
1854
if (!e.StagingItem.
Input
.Handled)
1856
MouseEventArgs previewMove = (MouseEventArgs) e.StagingItem.
Input
;
1865
if (e.StagingItem.
Input
.RoutedEvent == Mouse.QueryCursorEvent)
1867
QueryCursorEventArgs queryCursor = (QueryCursorEventArgs)e.StagingItem.
Input
;
1873
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
1875
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;
285
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
287
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
329
if (e.StagingItem.
Input
.RoutedEvent == Mouse.LostMouseCaptureEvent ||
330
e.StagingItem.
Input
.RoutedEvent == Mouse.GotMouseCaptureEvent)
345
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
347
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
1024
if (!e.StagingItem.
Input
.Handled)
1026
RoutedEvent eventMain = StylusLogic.GetMainEventFromPreviewEvent(e.StagingItem.
Input
.RoutedEvent);
1029
StylusEventArgs eventArgsPreview = (StylusEventArgs)e.StagingItem.
Input
;
1070
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1085
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1097
if (e.StagingItem.
Input
.Handled)
1263
if (args.StagingItem.
Input
.RoutedEvent == Stylus.PreviewStylusDownEvent)
1265
StylusEventArgs stylusDownEventArgs = args.StagingItem.
Input
as StylusDownEventArgs;
1300
else if (args.StagingItem.
Input
.RoutedEvent == Stylus.PreviewStylusSystemGestureEvent)
1302
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)
459
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
461
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
978
if (e.StagingItem.
Input
.RoutedEvent == InputManager.PreviewInputReportEvent)
980
InputReportEventArgs inputReportEventArgs = e.StagingItem.
Input
as InputReportEventArgs;
1047
if (e.StagingItem.
Input
.RoutedEvent == Stylus.PreviewStylusDownEvent)
1049
StylusEventArgs stylusDownEventArgs = e.StagingItem.
Input
as StylusDownEventArgs;
1140
if (e.StagingItem.
Input
.RoutedEvent == Mouse.LostMouseCaptureEvent ||
1141
e.StagingItem.
Input
.RoutedEvent == Mouse.GotMouseCaptureEvent)
1168
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
1170
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
1250
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusOutOfRangeEvent)
1254
StylusEventArgs eventArgsOutOfRange = (StylusEventArgs)e.StagingItem.
Input
;
1312
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusMoveEvent)
1314
StylusEventArgs stylusMove = (StylusEventArgs)e.StagingItem.
Input
;
1324
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusSystemGestureEvent)
1326
StylusSystemGestureEventArgs stylusSystemGesture = (StylusSystemGestureEventArgs)e.StagingItem.
Input
;
1346
if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusOutOfRangeEvent)
1348
var stylusArgs = e.StagingItem.
Input
as StylusEventArgs;
1399
if (!e.StagingItem.
Input
.Handled)
1401
RoutedEvent eventMain = StylusLogic.GetMainEventFromPreviewEvent(e.StagingItem.
Input
.RoutedEvent);
1404
StylusEventArgs eventArgsPreview = (StylusEventArgs)e.StagingItem.
Input
;
1445
StylusEventArgs stylusEventArgs = e.StagingItem.
Input
as StylusEventArgs;
1457
StylusEventArgs stylusEventArgs = stagingItem.
Input
as StylusEventArgs;
1468
if (e.StagingItem.
Input
.Handled)
1488
else if (e.StagingItem.
Input
.RoutedEvent == Stylus.StylusSystemGestureEvent)
1586
storedStagingItems[stagingItemCount - 1].
Input
.RoutedEvent == Stylus.StylusMoveEvent)
1675
InputReportEventArgs inputReportArgs = stagingItem.
Input
as InputReportEventArgs;
1716
if (!stagingItem.
Input
.Handled)
1718
StylusEventArgs stylusArgs = stagingItem.
Input
as StylusEventArgs;
1733
RawMouseActions actions = stylusDevice.GetMouseActionsFromStylusEventAndPlaybackCachedDown(stagingItem.
Input
.RoutedEvent, stylusArgs);
1793
if (!e.StagingItem.
Input
.Handled)
1797
if ((e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseDownEvent) &&
1798
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent) &&
1799
(e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseMoveEvent) &&
1800
(e.StagingItem.
Input
.RoutedEvent != InputManager.InputReportEvent))
1813
if (e.StagingItem.
Input
.RoutedEvent == InputManager.InputReportEvent)
1818
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
1843
MouseEventArgs mouseEventArgs = e.StagingItem.
Input
as MouseEventArgs;
1851
e.StagingItem.
Input
.RoutedEvent != Mouse.PreviewMouseUpEvent)
1854
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseMoveEvent)
1860
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseDownEvent)
1867
if (e.StagingItem.
Input
.RoutedEvent == Mouse.PreviewMouseUpEvent)
2863
if (!e.StagingItem.
Input
.Handled)
2865
RoutedEvent routedEvent = e.StagingItem.
Input
.RoutedEvent;
2871
StylusEventArgs eventArgs = (StylusEventArgs)e.StagingItem.
Input
;
System\Windows\Input\TextCompositionManager.cs (18)
408
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
410
KeyEventArgs keyArgs = (KeyEventArgs) e.StagingItem.
Input
;
449
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.PreviewKeyDownEvent)
451
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
468
if(e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyUpEvent)
470
KeyEventArgs keyArgs = (KeyEventArgs) e.StagingItem.
Input
;
518
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputStartEvent)
520
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
531
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputUpdateEvent)
533
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
544
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.PreviewTextInputEvent)
546
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
557
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.TextInputStartEvent)
559
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
570
else if(e.StagingItem.
Input
.RoutedEvent == TextCompositionManager.TextInputUpdateEvent)
572
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.
Input
;
588
InputReportEventArgs input = e.StagingItem.
Input
as InputReportEventArgs;
648
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)
987
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)
1161
ProcessInput(e.StagingItem.
Input
);
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\KeyTipService.cs (7)
687
RoutedEvent routedEvent = e.StagingItem.
Input
.RoutedEvent;
690
KeyEventArgs keyArgs = (KeyEventArgs)e.StagingItem.
Input
;
704
OnPreviewTextInput((TextCompositionEventArgs)e.StagingItem.
Input
);
708
OnPreviewKeyDown((KeyEventArgs)e.StagingItem.
Input
);
712
e.StagingItem.
Input
.Handled = true;
719
if (e.StagingItem.
Input
.RoutedEvent == Keyboard.KeyDownEvent)
721
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)
530
if (!e.StagingItem.
Input
.Handled && e.StagingItem.
Input
.RoutedEvent == SWI.TextCompositionManager.TextInputEvent)
532
SWI.TextCompositionEventArgs te = (SWI.TextCompositionEventArgs)e.StagingItem.
Input
;
540
e.StagingItem.
Input
.Handled = this.ProcessDialogChar(text[0]);
System\Windows\Integration\WindowsFormsHost.cs (4)
1019
if (!e.StagingItem.
Input
.Handled && e.StagingItem.
Input
.RoutedEvent == SWI.TextCompositionManager.TextInputEvent)
1021
SWI.TextCompositionEventArgs te = (SWI.TextCompositionEventArgs)e.StagingItem.
Input
;
1029
e.StagingItem.
Input
.Handled = this.ProcessDialogChar(text[0]);