1 instantiation of InputManager
PresentationCore (1)
System\Windows\Input\InputManager.cs (1)
137inputManager = new InputManager();
201 references to InputManager
PresentationCore (175)
MS\Internal\SynchronizedInputHelper.cs (23)
94if (Array.IndexOf(InputManager.SynchronizedInputEvents, args.RoutedEvent) >= 0) 107if (InputManager.ListeningElement == o && 108Array.IndexOf(InputManager.SynchronizedInputEvents, args.RoutedEvent) >= 0) 177InputManager.SynchronizedInputState = SynchronizedInputStates.HadOpportunity; 184InputManager.SynchronizedInputState = SynchronizedInputStates.HadOpportunity; 197if (InputManager.SynchronizeInputType == SynchronizedInputType.MouseLeftButtonDown || 198InputManager.SynchronizeInputType == SynchronizedInputType.MouseLeftButtonUp) 200InputManager.SynchronizedInputState = SynchronizedInputStates.HadOpportunity; 204if (InputManager.SynchronizeInputType == SynchronizedInputType.MouseRightButtonDown || 205InputManager.SynchronizeInputType == SynchronizedInputType.MouseRightButtonUp) 207InputManager.SynchronizedInputState = SynchronizedInputStates.HadOpportunity; 227InputManager.SynchronizedInputState = SynchronizedInputStates.Handled; 234InputManager.SynchronizedInputState = SynchronizedInputStates.Handled; 247if (InputManager.SynchronizeInputType == SynchronizedInputType.MouseLeftButtonDown || 248InputManager.SynchronizeInputType == SynchronizedInputType.MouseLeftButtonUp) 250InputManager.SynchronizedInputState = SynchronizedInputStates.Handled; 254if (InputManager.SynchronizeInputType == SynchronizedInputType.MouseRightButtonDown || 255InputManager.SynchronizeInputType == SynchronizedInputType.MouseRightButtonUp) 257InputManager.SynchronizedInputState = SynchronizedInputStates.Handled; 300if (InputManager.ListeningElement is UIElement e) 305else if (InputManager.ListeningElement is ContentElement ce) 310else if (InputManager.ListeningElement is UIElement3D e3D) 323switch (InputManager.SynchronizedInputState)
System\Windows\ContentElement.cs (7)
171if (InputManager.IsSynchronizedInput) 185if (InputManager.IsSynchronizedInput) 212if (args.Handled && (InputManager.SynchronizedInputState == SynchronizedInputStates.HadOpportunity)) 222if (InputManager.IsSynchronizedInput) 228InputManager.StartListeningSynchronizedInput(this, inputType); 236InputManager.CancelSynchronizedInput(); 703InputManager.SafeCurrentNotifyHitTestInvalidated();
System\Windows\Input\AccessKeyManager.cs (1)
176InputManager.Current.PostProcessInput += new ProcessInputEventHandler(PostProcessInput);
System\Windows\Input\Command\CommandDevice.cs (3)
25internal CommandDevice( InputManager inputManager ) 85if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 293private readonly InputManager _inputManager;
System\Windows\Input\DeadCharTextComposition.cs (1)
35internal DeadCharTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete, InputDevice inputDevice) : base(inputManager, source, text, autoComplete, inputDevice)
System\Windows\Input\DefaultTextStore.cs (3)
139TextCompositionManager compmgr = InputManager.Current.PrimaryKeyboardDevice.TextCompositionManager; 150_composition = new DefaultTextStoreTextComposition(InputManager.Current, Keyboard.FocusedElement, result, TextCompositionAutoComplete.On); 180_composition = new DefaultTextStoreTextComposition(InputManager.Current, Keyboard.FocusedElement, "", TextCompositionAutoComplete.Off);
System\Windows\Input\DefaultTextStoreTextComposition.cs (1)
42internal DefaultTextStoreTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete) : base(inputManager, source, text, autoComplete)
System\Windows\Input\InputManager.cs (9)
30internal static readonly RoutedEvent PreviewInputReportEvent = GlobalEventManager.RegisterRoutedEvent("PreviewInputReport", RoutingStrategy.Tunnel, typeof(InputReportEventHandler), typeof(InputManager)); 35internal static readonly RoutedEvent InputReportEvent = GlobalEventManager.RegisterRoutedEvent("InputReport", RoutingStrategy.Bubble, typeof(InputReportEventHandler), typeof(InputManager)); 40public static InputManager Current 53internal static InputManager UnsecureCurrent 128private static InputManager GetCurrentInputManagerImpl() 130InputManager inputManager = null; 133inputManager = dispatcher.InputManager as InputManager; 860if(item.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 867inputReport.RoutedEvent=InputManager.InputReportEvent;
System\Windows\Input\InputProviderSite.cs (5)
22internal InputProviderSite(InputManager inputManager, IInputProvider inputProvider) 31public InputManager InputManager 42internal InputManager CriticalInputManager => _inputManager; 96input.RoutedEvent=InputManager.PreviewInputReportEvent; 107private InputManager _inputManager;
System\Windows\Input\Keyboard.cs (1)
370KeyboardDevice keyboardDevice = InputManager.UnsecureCurrent.PrimaryKeyboardDevice;
System\Windows\Input\KeyboardDevice.cs (5)
28protected KeyboardDevice(InputManager inputManager) 663RawKeyboardInputReport keyboardInput = ExtractRawKeyboardInputReport(e, InputManager.PreviewInputReportEvent); 673RawKeyboardInputReport keyboardInput = ExtractRawKeyboardInputReport(e, InputManager.PreviewInputReportEvent); 905RawKeyboardInputReport keyboardInput = ExtractRawKeyboardInputReport(e, InputManager.InputReportEvent); 1037private readonly InputManager _inputManager;
System\Windows\Input\ManipulationDevice.cs (2)
38_inputManager = InputManager.UnsecureCurrent; 514private InputManager _inputManager;
System\Windows\Input\Mouse.cs (1)
625mouseDevice = InputManager.UnsecureCurrent.PrimaryMouseDevice;
System\Windows\Input\MouseDevice.cs (10)
38internal MouseDevice(InputManager inputManager) 920inputReportEventArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1157if (e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 1191actionsArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1275actionsArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1288moveArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1374activateArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1380if ( e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent ) 1882if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 2246private InputManager _inputManager;
System\Windows\Input\NotifyInputEventArgs.cs (4)
28internal virtual void Reset(StagingAreaInputItem input, InputManager inputManager) 43public InputManager InputManager 55internal InputManager UnsecureInputManager 65private InputManager _inputManager;
System\Windows\Input\PreProcessInputEventArgs.cs (2)
19/// <see cref="InputManager.PreProcessInput"/> 28internal override void Reset(StagingAreaInputItem input, InputManager inputManager)
System\Windows\Input\ProcessInputEventArgs.cs (3)
21/// <see cref="InputManager.PreProcessInput"/> 24/// <see cref="InputManager.PostProcessInput"/> 33internal override void Reset(StagingAreaInputItem input, InputManager inputManager)
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
275_currentStylusLogic = new PointerLogic(InputManager.UnsecureCurrent); 279_currentStylusLogic = new WispLogic(InputManager.UnsecureCurrent);
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (7)
110private readonly InputManager _inputManager; 150internal PointerLogic(InputManager inputManager) 183if (e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 284args.RoutedEvent = InputManager.PreviewInputReportEvent; 302if (e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 362if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 1358input.RoutedEvent = InputManager.PreviewInputReportEvent;
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (6)
665inputReportEventArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 667InputManager.Current.ProcessInput(inputReportEventArgs); 878RoutedEvent = InputManager.PreviewInputReportEvent, 882InputManager.UnsecureCurrent.ProcessInput(irea); 1058InputManager.UnsecureCurrent.ProcessInput(lostCapture); 1065InputManager.UnsecureCurrent.ProcessInput(gotCapture);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (3)
508(e.StagingItem.Input.RoutedEvent != InputManager.InputReportEvent)) 521if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 536mouseDevice = InputManager.UnsecureCurrent.PrimaryMouseDevice;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (17)
32internal WispLogic(InputManager inputManager) 368input.RoutedEvent = InputManager.PreviewInputReportEvent; 452mouseArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 468if (e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 578args.RoutedEvent = InputManager.PreviewInputReportEvent; 624args.RoutedEvent = InputManager.PreviewInputReportEvent; 987if (e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 1177if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 1302actionsArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 1770inputReportArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 1809(e.StagingItem.Input.RoutedEvent != InputManager.InputReportEvent)) 1822if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 2583input.RoutedEvent = InputManager.PreviewInputReportEvent; 2809input.RoutedEvent = InputManager.PreviewInputReportEvent; 2860inputReportArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 3127internal void RegisterHwndForInput(InputManager inputManager, PresentationSource inputSource) 3660private readonly InputManager _inputManager;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (6)
372inputReportEventArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 1680InputManager inputManager = (InputManager)Dispatcher.InputManager; 1696inputReportArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 1710InputManager inputManager = (InputManager)Dispatcher.InputManager;
System\Windows\Input\Stylus\Wisp\WispStylusPlugInCollection.cs (2)
87InputManager inputManager = (InputManager)element.Dispatcher.InputManager;
System\Windows\Input\TextComposition.cs (6)
86public TextComposition(InputManager inputManager, IInputElement source, string resultText) : this(inputManager, source, resultText, TextCompositionAutoComplete.On) 93public TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete) : this(inputManager, source, resultText, autoComplete, InputManager.Current.PrimaryKeyboardDevice) 108internal TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete, InputDevice inputDevice) 365internal InputManager _InputManager 405private readonly InputManager _inputManager;
System\Windows\Input\TextCompositionManager.cs (5)
233internal TextCompositionManager(InputManager inputManager) 607if(input.Report.Type == InputType.Text && input.RoutedEvent == InputManager.InputReportEvent) 642_deadCharTextComposition = new DeadCharTextComposition(_inputManager, (IInputElement)null, inputText , TextCompositionAutoComplete.Off, InputManager.Current.PrimaryKeyboardDevice); 664TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.Input.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice); 930private readonly InputManager _inputManager;
System\Windows\Input\TextServicesManager.cs (2)
32internal TextServicesManager(InputManager inputManager) 285private readonly InputManager _inputManager;
System\Windows\Input\TouchDevice.cs (2)
44_inputManager = InputManager.UnsecureCurrent; 1325private InputManager _inputManager;
System\Windows\Input\Win32KeyboardDevice.cs (1)
30internal Win32KeyboardDevice(InputManager inputManager)
System\Windows\Input\Win32MouseDevice.cs (1)
33internal Win32MouseDevice(InputManager inputManager)
System\Windows\InterOp\HwndAppCommandInputProvider.cs (1)
22_site = InputManager.Current.RegisterInputProvider(this);
System\Windows\InterOp\HwndKeyboardInputProvider.cs (1)
25_site = InputManager.Current.RegisterInputProvider(this);
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
26_site = InputManager.Current.RegisterInputProvider(this);
System\Windows\InterOp\HwndPointerInputProvider.cs (3)
74_site = InputManager.Current.RegisterInputProvider(this); 281RoutedEvent = InputManager.PreviewInputReportEvent, 285InputManager.UnsecureCurrent.ProcessInput(irea);
System\Windows\InterOp\HwndSource.cs (4)
468InputManager.SafeCurrentNotifyHitTestInvalidated(); 522InputManager.SafeCurrentNotifyHitTestInvalidated(); 627InputManager.SafeCurrentNotifyHitTestInvalidated(); 2427InputManager.UnsecureCurrent.RaiseTranslateAccelerator(bubbleArgs);
System\Windows\InterOp\HwndStylusInputProvider.cs (2)
38InputManager inputManager = InputManager.Current;
System\Windows\Media\MediaContext.cs (1)
1861InputManager.UnsecureCurrent.InvalidateInputDevices();
System\Windows\Media\Visual.cs (1)
2733System.Windows.Input.InputManager.SafeCurrentNotifyHitTestInvalidated();
System\Windows\OleServicesContext.cs (2)
173InputManager inputManager = (InputManager)Dispatcher.CurrentDispatcher.InputManager;
System\Windows\UIElement.cs (9)
1810if (InputManager.IsSynchronizedInput) 1835if (InputManager.IsSynchronizedInput) 1859if (args.Handled && (InputManager.SynchronizedInputState == SynchronizedInputStates.HadOpportunity)) 1868if(InputManager.IsSynchronizedInput) 1874InputManager.StartListeningSynchronizedInput(this, inputType); 1882InputManager.CancelSynchronizedInput(); 3684InputManager.SafeCurrentNotifyHitTestInvalidated(); 3787InputManager.SafeCurrentNotifyHitTestInvalidated(); 3918InputManager.SafeCurrentNotifyHitTestInvalidated();
System\Windows\UIElement3D.cs (9)
916InputManager.SafeCurrentNotifyHitTestInvalidated(); 1017InputManager.SafeCurrentNotifyHitTestInvalidated(); 1139InputManager.SafeCurrentNotifyHitTestInvalidated(); 1245if (InputManager.IsSynchronizedInput) 1259if (InputManager.IsSynchronizedInput) 1286if (args.Handled && (InputManager.SynchronizedInputState == SynchronizedInputStates.HadOpportunity)) 1296if (InputManager.IsSynchronizedInput) 1302InputManager.StartListeningSynchronizedInput(this, inputType); 1310InputManager.CancelSynchronizedInput();
PresentationFramework (16)
System\Windows\Controls\PopupControlService.cs (2)
37InputManager.Current.PostProcessInput += new ProcessInputEventHandler(OnPostProcessInput); 47if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent)
System\Windows\Controls\Primitives\ButtonBase.cs (1)
754return InputManager.Current.PrimaryMouseDevice.LeftButton == MouseButtonState.Released;
System\Windows\Controls\Primitives\MenuBase.cs (2)
902InputManager.UnsecureCurrent.PushMenuMode(_pushedMenuMode); 914InputManager.UnsecureCurrent.PopMenuMode(pushedMenuMode);
System\Windows\Documents\FrameworkRichTextComposition.cs (1)
30internal FrameworkRichTextComposition(InputManager inputManager, IInputElement source, object owner) : base(inputManager, source, owner)
System\Windows\Documents\FrameworkTextComposition.cs (1)
37internal FrameworkTextComposition(InputManager inputManager, IInputElement source, object owner) : base(inputManager, source, String.Empty, TextCompositionAutoComplete.Off)
System\Windows\Documents\TextStore.cs (2)
2064composition = new FrameworkRichTextComposition(InputManager.UnsecureCurrent, editor.UiScope, owner); 2068composition = new FrameworkTextComposition(InputManager.Current, editor.UiScope, owner);
System\Windows\Input\KeyboardNavigation.cs (4)
84InputManager inputManager = InputManager.Current; 822return InputManager.Current.MostRecentInputDevice is KeyboardDevice; 3400RawUIStateInputReport report = ExtractRawUIStateInputReport(inputEventArgs, InputManager.InputReportEvent);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
392case 296: t = () => typeof(InputManager); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5461typeof(System.Windows.Input.InputManager),
System\Windows\Markup\KnownTypes.cs (1)
5850case KnownElements.InputManager: t = typeof(System.Windows.Input.InputManager); break;
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\KeyTipService.cs (2)
44InputManager.Current.PostProcessInput += new ProcessInputEventHandler(PostProcessInput); 45InputManager.Current.PreProcessInput += new PreProcessInputEventHandler(PreProcessInput);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
477return (InputManager.Current.MostRecentInputDevice is KeyboardDevice);
Microsoft\Windows\Controls\Ribbon\RibbonToolTipService.cs (1)
27InputManager.Current.PostProcessInput += new ProcessInputEventHandler(OnPostProcessInput);
WindowsFormsIntegration (6)
System\Windows\Integration\ApplicationInterop.cs (2)
91System.Windows.Input.InputManager.Current.IsInMenuMode) 131SWI.InputManager.Current.PrimaryKeyboardDevice.TextCompositionManager.CompleteDeadCharComposition();
System\Windows\Integration\ElementHost.cs (2)
81SWI.InputManager.Current.PostProcessInput += InputManager_PostProcessInput; 852SWI.InputManager.Current.PostProcessInput -= InputManager_PostProcessInput;
System\Windows\Integration\WindowsFormsHost.cs (2)
840SWI.InputManager.Current.PostProcessInput += InputManager_PostProcessInput; 849SWI.InputManager.Current.PostProcessInput -= InputManager_PostProcessInput;