162 references to StagingItem
PresentationCore (150)
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (5)
233
if (e.
StagingItem
.Input.Handled) return;
235
if (e.
StagingItem
.Input.RoutedEvent == Keyboard.KeyDownEvent)
237
OnKeyDown((KeyEventArgs)e.
StagingItem
.Input);
239
else if (e.
StagingItem
.Input.RoutedEvent == TextCompositionManager.TextInputEvent)
241
OnText((TextCompositionEventArgs)e.
StagingItem
.Input);
Core\CSharp\System\Windows\Input\Command\CommandDevice.cs (10)
75
InputReportEventArgs input = e.
StagingItem
.Input as InputReportEventArgs;
107
if (e.
StagingItem
.Input.RoutedEvent == InputManager.InputReportEvent)
109
if (!e.
StagingItem
.Input.Handled)
111
InputReportEventArgs inputReportEventArgs = e.
StagingItem
.Input as InputReportEventArgs;
117
IInputElement commandTarget = e.
StagingItem
.Input.OriginalSource as IInputElement;
128
e.PushInput(args, e.
StagingItem
);
135
else if (e.
StagingItem
.Input.RoutedEvent == Keyboard.KeyUpEvent ||
136
e.
StagingItem
.Input.RoutedEvent == Mouse.MouseUpEvent ||
137
e.
StagingItem
.Input.RoutedEvent == Keyboard.GotKeyboardFocusEvent ||
138
e.
StagingItem
.Input.RoutedEvent == Keyboard.LostKeyboardFocusEvent)
Core\CSharp\System\Windows\Input\InputManager.cs (2)
1111
processInputEventArgs.
StagingItem
.Input.MarkAsUserInitiated();
1126
processInputEventArgs.
StagingItem
.Input.ClearUserInitiated();
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (29)
751
e.
StagingItem
.Input.Device = this;
816
e.
StagingItem
.SetData(_tagNonRedundantActions, actions);
820
e.
StagingItem
.SetData(_tagKey, key);
821
e.
StagingItem
.SetData(_tagScanCode, new ScanCode(keyboardInput.ScanCode, keyboardInput.IsExtendedKey));
833
e.
StagingItem
.SetData(_tagNonRedundantActions, actions);
837
e.
StagingItem
.SetData(_tagKey, key);
838
e.
StagingItem
.SetData(_tagScanCode, new ScanCode(keyboardInput.ScanCode, keyboardInput.IsExtendedKey));
848
if(e.
StagingItem
.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent)
852
KeyEventArgs args = (KeyEventArgs) e.
StagingItem
.Input;
872
else if(e.
StagingItem
.Input.RoutedEvent == Keyboard.PreviewKeyUpEvent)
876
KeyEventArgs args = (KeyEventArgs) e.
StagingItem
.Input;
893
if(e.
StagingItem
.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent)
897
if(!e.
StagingItem
.Input.Handled)
899
KeyEventArgs previewKeyDown = (KeyEventArgs) e.
StagingItem
.Input;
943
e.PushInput(keyDown, e.
StagingItem
);
948
if(e.
StagingItem
.Input.RoutedEvent == Keyboard.PreviewKeyUpEvent)
952
if(!e.
StagingItem
.Input.Handled)
954
KeyEventArgs previewKeyUp = (KeyEventArgs) e.
StagingItem
.Input;
997
e.PushInput(keyUp, e.
StagingItem
);
1006
if(!e.
StagingItem
.Input.Handled)
1015
Key key = (Key) e.
StagingItem
.GetData(_tagKey);
1019
ScanCode scanCode = (ScanCode)e.
StagingItem
.GetData(_tagScanCode);
1027
e.PushInput(previewKeyDown, e.
StagingItem
);
1034
Key key = (Key) e.
StagingItem
.GetData(_tagKey);
1038
ScanCode scanCode = (ScanCode)e.
StagingItem
.GetData(_tagScanCode);
1046
e.PushInput(previewKeyUp, e.
StagingItem
);
1059
ChangeFocus(null, e.
StagingItem
.Input.Timestamp);
1073
InputReportEventArgs input = e.
StagingItem
.Input as InputReportEventArgs;
1091
object o = e.
StagingItem
.GetData(_tagNonRedundantActions);
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (1)
392
InputEventArgs inputEventArgs = e.
StagingItem
.Input;
Core\CSharp\System\Windows\Input\MouseDevice.cs (71)
1267
if (e.
StagingItem
.Input.RoutedEvent == InputManager.PreviewInputReportEvent)
1269
InputReportEventArgs inputReportEventArgs = e.
StagingItem
.Input as InputReportEventArgs;
1327
InputDevice inputDevice = e.
StagingItem
.GetData(_tagStylusDevice) as StylusDevice;
1351
e.
StagingItem
.SetData(_tagStylusDevice, inputDevice);
1369
e.PushInput(e.
StagingItem
);
1372
ChangeMouseOver(null, e.
StagingItem
.Input.Timestamp);
1425
e.
StagingItem
.SetData(_tagRootPoint, ptRoot);
1442
if (e.
StagingItem
.Input.RoutedEvent == Mouse.PreviewMouseDownEvent)
1444
MouseButtonEventArgs mouseButtonEventArgs = e.
StagingItem
.Input as MouseButtonEventArgs;
1451
MouseButtonEventArgs clickThrough = new MouseButtonEventArgs(this, mouseButtonEventArgs.Timestamp, mouseButtonEventArgs.ChangedButton, GetStylusDevice(e.
StagingItem
));
1458
else if (e.
StagingItem
.Input.RoutedEvent == Mouse.PreviewMouseUpEvent)
1460
MouseButtonEventArgs mouseButtonEventArgs = e.
StagingItem
.Input as MouseButtonEventArgs;
1467
MouseButtonEventArgs clickThrough = new MouseButtonEventArgs(this, mouseButtonEventArgs.Timestamp, mouseButtonEventArgs.ChangedButton, GetStylusDevice(e.
StagingItem
));
1486
if ( e.
StagingItem
.Input.RoutedEvent == InputManager.PreviewInputReportEvent )
1488
InputReportEventArgs inputReportEventArgs = e.
StagingItem
.Input as InputReportEventArgs;
1507
_stylusDevice = GetStylusDevice(e.
StagingItem
);
1561
ChangeMouseCapture(null, null, CaptureMode.None, e.
StagingItem
.Input.Timestamp);
1567
ChangeMouseCapture(null, null, CaptureMode.None, e.
StagingItem
.Input.Timestamp);
1580
Point ptRoot = (Point) e.
StagingItem
.GetData(_tagRootPoint);
1786
ChangeMouseOver(mouseOver, e.
StagingItem
.Input.Timestamp);
1871
e.
StagingItem
.SetData(_tagNonRedundantActions, actions);
1884
if (e.
StagingItem
.Input.RoutedEvent == Mouse.PreviewMouseDownEvent)
1886
MouseButtonEventArgs mouseButtonArgs = e.
StagingItem
.Input as MouseButtonEventArgs;
1887
StylusDevice stylusDevice = GetStylusDevice(e.
StagingItem
);
1924
if (e.
StagingItem
.Input.RoutedEvent == Mouse.PreviewMouseWheelEvent)
1926
if (!e.
StagingItem
.Input.Handled)
1928
MouseWheelEventArgs previewWheel = (MouseWheelEventArgs) e.
StagingItem
.Input;
1938
e.PushInput(wheel, e.
StagingItem
);
1943
if (e.
StagingItem
.Input.RoutedEvent == Mouse.PreviewMouseDownEvent)
1945
if (!e.
StagingItem
.Input.Handled)
1947
MouseButtonEventArgs previewDown = (MouseButtonEventArgs) e.
StagingItem
.Input;
1948
MouseButtonEventArgs down = new MouseButtonEventArgs(this, previewDown.Timestamp, previewDown.ChangedButton, GetStylusDevice(e.
StagingItem
));
1951
e.PushInput(down, e.
StagingItem
);
1956
if (e.
StagingItem
.Input.RoutedEvent == Mouse.PreviewMouseUpEvent)
1958
if (!e.
StagingItem
.Input.Handled)
1960
MouseButtonEventArgs previewUp = (MouseButtonEventArgs) e.
StagingItem
.Input;
1961
MouseButtonEventArgs up = new MouseButtonEventArgs(this, previewUp.Timestamp, previewUp.ChangedButton, GetStylusDevice(e.
StagingItem
));
1963
e.PushInput(up, e.
StagingItem
);
1968
if (e.
StagingItem
.Input.RoutedEvent == Mouse.PreviewMouseMoveEvent)
1970
if (!e.
StagingItem
.Input.Handled)
1972
MouseEventArgs previewMove = (MouseEventArgs) e.
StagingItem
.Input;
1973
MouseEventArgs move = new MouseEventArgs(this, previewMove.Timestamp, GetStylusDevice(e.
StagingItem
));
1975
e.PushInput(move, e.
StagingItem
);
1981
if (e.
StagingItem
.Input.RoutedEvent == Mouse.QueryCursorEvent)
1984
QueryCursorEventArgs queryCursor = (QueryCursorEventArgs)e.
StagingItem
.Input;
1991
if (e.
StagingItem
.Input.RoutedEvent == InputManager.InputReportEvent)
1993
InputReportEventArgs inputReportEventArgs = e.
StagingItem
.Input as InputReportEventArgs;
2034
e.PushInput(previewWheel, e.
StagingItem
);
2040
MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Left, GetStylusDevice(e.
StagingItem
));
2043
e.PushInput(previewDown, e.
StagingItem
);
2049
MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Left, GetStylusDevice(e.
StagingItem
));
2052
e.PushInput(previewUp, e.
StagingItem
);
2058
MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Right, GetStylusDevice(e.
StagingItem
));
2061
e.PushInput(previewDown, e.
StagingItem
);
2067
MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Right, GetStylusDevice(e.
StagingItem
));
2070
e.PushInput(previewUp, e.
StagingItem
);
2076
MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Middle, GetStylusDevice(e.
StagingItem
));
2079
e.PushInput(previewDown, e.
StagingItem
);
2085
MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Middle, GetStylusDevice(e.
StagingItem
));
2088
e.PushInput(previewUp, e.
StagingItem
);
2094
MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton1, GetStylusDevice(e.
StagingItem
));
2097
e.PushInput(previewDown, e.
StagingItem
);
2103
MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton1, GetStylusDevice(e.
StagingItem
));
2106
e.PushInput(previewUp, e.
StagingItem
);
2112
MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton2, GetStylusDevice(e.
StagingItem
));
2115
e.PushInput(previewDown, e.
StagingItem
);
2121
MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton2, GetStylusDevice(e.
StagingItem
));
2124
e.PushInput(previewUp, e.
StagingItem
);
2130
MouseEventArgs previewMove = new MouseEventArgs(this, rawMouseInputReport.Timestamp, GetStylusDevice(e.
StagingItem
));
2133
e.PushInput(previewMove, e.
StagingItem
);
2152
object o = e.
StagingItem
.GetData(_tagNonRedundantActions);
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (21)
549
if (e.
StagingItem
.Input.RoutedEvent == Keyboard.KeyDownEvent)
551
KeyEventArgs keyArgs = (KeyEventArgs) e.
StagingItem
.Input;
594
if (e.
StagingItem
.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent)
596
KeyEventArgs keyArgs = (KeyEventArgs)e.
StagingItem
.Input;
618
if(e.
StagingItem
.Input.RoutedEvent == Keyboard.KeyUpEvent)
620
KeyEventArgs keyArgs = (KeyEventArgs) e.
StagingItem
.Input;
668
else if(e.
StagingItem
.Input.RoutedEvent == TextCompositionManager.PreviewTextInputStartEvent)
670
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.
StagingItem
.Input;
676
e.PushInput(text, e.
StagingItem
);
681
else if(e.
StagingItem
.Input.RoutedEvent == TextCompositionManager.PreviewTextInputUpdateEvent)
683
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.
StagingItem
.Input;
689
e.PushInput(text, e.
StagingItem
);
694
else if(e.
StagingItem
.Input.RoutedEvent == TextCompositionManager.PreviewTextInputEvent)
696
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.
StagingItem
.Input;
702
e.PushInput(text, e.
StagingItem
);
707
else if(e.
StagingItem
.Input.RoutedEvent == TextCompositionManager.TextInputStartEvent)
709
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.
StagingItem
.Input;
720
else if(e.
StagingItem
.Input.RoutedEvent == TextCompositionManager.TextInputUpdateEvent)
722
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.
StagingItem
.Input;
738
InputReportEventArgs input = e.
StagingItem
.Input as InputReportEventArgs;
798
TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.
StagingItem
.Input.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
Core\CSharp\System\Windows\Input\TextServicesManager.cs (9)
138
if(e.
StagingItem
.Input.RoutedEvent != Keyboard.PreviewKeyDownEvent &&
139
e.
StagingItem
.Input.RoutedEvent != Keyboard.PreviewKeyUpEvent)
160
keyArgs = (KeyEventArgs)e.
StagingItem
.Input;
200
if(e.
StagingItem
.Input.RoutedEvent == Keyboard.PreviewKeyDownEvent ||
201
e.
StagingItem
.Input.RoutedEvent == Keyboard.PreviewKeyUpEvent)
207
keyArgs = (KeyEventArgs)e.
StagingItem
.Input;
222
else if(e.
StagingItem
.Input.RoutedEvent == Keyboard.KeyDownEvent ||
223
e.
StagingItem
.Input.RoutedEvent == Keyboard.KeyUpEvent)
225
keyArgs = (KeyEventArgs)e.
StagingItem
.Input;
Core\CSharp\System\Windows\Input\TouchDevice.cs (2)
1088
InputEventArgs inputEventArgs = e.
StagingItem
.Input;
1118
e.PushInput(promotedTouchEventArgs, e.
StagingItem
);
PresentationFramework (10)
src\Framework\System\Windows\Controls\PopupControlService.cs (9)
58
if (e.
StagingItem
.Input.RoutedEvent == InputManager.InputReportEvent)
60
InputReportEventArgs report = (InputReportEventArgs)e.
StagingItem
.Input;
137
else if (e.
StagingItem
.Input.RoutedEvent == Keyboard.KeyDownEvent)
139
ProcessKeyDown(sender, (KeyEventArgs)e.
StagingItem
.Input);
141
else if (e.
StagingItem
.Input.RoutedEvent == Keyboard.KeyUpEvent)
143
ProcessKeyUp(sender, (KeyEventArgs)e.
StagingItem
.Input);
145
else if (e.
StagingItem
.Input.RoutedEvent == Mouse.MouseUpEvent)
147
ProcessMouseUp(sender, (MouseButtonEventArgs)e.
StagingItem
.Input);
149
else if (e.
StagingItem
.Input.RoutedEvent == Mouse.MouseDownEvent)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
1247
ProcessInput(e.
StagingItem
.Input);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (2)
201
if (this.IsPointerButtonEventItem(e.
StagingItem
))
209
if (this.IsPointerButtonEventItem(e.
StagingItem
))