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