1 instantiation of InputManager
PresentationCore (1)
System\Windows\Input\InputManager.cs (1)
129inputManager = new InputManager();
201 references to InputManager
PresentationCore (175)
MS\Internal\SynchronizedInputHelper.cs (23)
90if (Array.IndexOf(InputManager.SynchronizedInputEvents, args.RoutedEvent) >= 0) 103if (InputManager.ListeningElement == o && 104Array.IndexOf(InputManager.SynchronizedInputEvents, args.RoutedEvent) >= 0) 173InputManager.SynchronizedInputState = SynchronizedInputStates.HadOpportunity; 180InputManager.SynchronizedInputState = SynchronizedInputStates.HadOpportunity; 193if (InputManager.SynchronizeInputType == SynchronizedInputType.MouseLeftButtonDown || 194InputManager.SynchronizeInputType == SynchronizedInputType.MouseLeftButtonUp) 196InputManager.SynchronizedInputState = SynchronizedInputStates.HadOpportunity; 200if (InputManager.SynchronizeInputType == SynchronizedInputType.MouseRightButtonDown || 201InputManager.SynchronizeInputType == SynchronizedInputType.MouseRightButtonUp) 203InputManager.SynchronizedInputState = SynchronizedInputStates.HadOpportunity; 223InputManager.SynchronizedInputState = SynchronizedInputStates.Handled; 230InputManager.SynchronizedInputState = SynchronizedInputStates.Handled; 243if (InputManager.SynchronizeInputType == SynchronizedInputType.MouseLeftButtonDown || 244InputManager.SynchronizeInputType == SynchronizedInputType.MouseLeftButtonUp) 246InputManager.SynchronizedInputState = SynchronizedInputStates.Handled; 250if (InputManager.SynchronizeInputType == SynchronizedInputType.MouseRightButtonDown || 251InputManager.SynchronizeInputType == SynchronizedInputType.MouseRightButtonUp) 253InputManager.SynchronizedInputState = SynchronizedInputStates.Handled; 296if (InputManager.ListeningElement is UIElement e) 301else if (InputManager.ListeningElement is ContentElement ce) 306else if (InputManager.ListeningElement is UIElement3D e3D) 319switch (InputManager.SynchronizedInputState)
System\Windows\ContentElement.cs (7)
160if (InputManager.IsSynchronizedInput) 174if (InputManager.IsSynchronizedInput) 201if (args.Handled && (InputManager.SynchronizedInputState == SynchronizedInputStates.HadOpportunity)) 211if (InputManager.IsSynchronizedInput) 217InputManager.StartListeningSynchronizedInput(this, inputType); 225InputManager.CancelSynchronizedInput(); 692InputManager.SafeCurrentNotifyHitTestInvalidated();
System\Windows\Input\AccessKeyManager.cs (1)
164InputManager.Current.PostProcessInput += new ProcessInputEventHandler(PostProcessInput);
System\Windows\Input\Command\CommandDevice.cs (3)
18internal CommandDevice( InputManager inputManager ) 78if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 286private readonly InputManager _inputManager;
System\Windows\Input\DeadCharTextComposition.cs (1)
26internal DeadCharTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete, InputDevice inputDevice) : base(inputManager, source, text, autoComplete, inputDevice)
System\Windows\Input\DefaultTextStore.cs (3)
132TextCompositionManager compmgr = InputManager.Current.PrimaryKeyboardDevice.TextCompositionManager; 143_composition = new DefaultTextStoreTextComposition(InputManager.Current, Keyboard.FocusedElement, result, TextCompositionAutoComplete.On); 173_composition = new DefaultTextStoreTextComposition(InputManager.Current, Keyboard.FocusedElement, "", TextCompositionAutoComplete.Off);
System\Windows\Input\DefaultTextStoreTextComposition.cs (1)
37internal DefaultTextStoreTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete) : base(inputManager, source, text, autoComplete)
System\Windows\Input\InputManager.cs (9)
22internal static readonly RoutedEvent PreviewInputReportEvent = GlobalEventManager.RegisterRoutedEvent("PreviewInputReport", RoutingStrategy.Tunnel, typeof(InputReportEventHandler), typeof(InputManager)); 27internal static readonly RoutedEvent InputReportEvent = GlobalEventManager.RegisterRoutedEvent("InputReport", RoutingStrategy.Bubble, typeof(InputReportEventHandler), typeof(InputManager)); 32public static InputManager Current 45internal static InputManager UnsecureCurrent 120private static InputManager GetCurrentInputManagerImpl() 122InputManager inputManager = null; 125inputManager = dispatcher.InputManager as InputManager; 852if(item.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 859inputReport.RoutedEvent=InputManager.InputReportEvent;
System\Windows\Input\InputProviderSite.cs (5)
13internal InputProviderSite(InputManager inputManager, IInputProvider inputProvider) 22public InputManager InputManager 33internal InputManager CriticalInputManager => _inputManager; 87input.RoutedEvent=InputManager.PreviewInputReportEvent; 98private InputManager _inputManager;
System\Windows\Input\Keyboard.cs (1)
363KeyboardDevice keyboardDevice = InputManager.UnsecureCurrent.PrimaryKeyboardDevice;
System\Windows\Input\KeyboardDevice.cs (5)
19protected KeyboardDevice(InputManager inputManager) 654RawKeyboardInputReport keyboardInput = ExtractRawKeyboardInputReport(e, InputManager.PreviewInputReportEvent); 664RawKeyboardInputReport keyboardInput = ExtractRawKeyboardInputReport(e, InputManager.PreviewInputReportEvent); 896RawKeyboardInputReport keyboardInput = ExtractRawKeyboardInputReport(e, InputManager.InputReportEvent); 1028private readonly InputManager _inputManager;
System\Windows\Input\ManipulationDevice.cs (2)
29_inputManager = InputManager.UnsecureCurrent; 505private InputManager _inputManager;
System\Windows\Input\Mouse.cs (1)
617mouseDevice = InputManager.UnsecureCurrent.PrimaryMouseDevice;
System\Windows\Input\MouseDevice.cs (10)
29internal MouseDevice(InputManager inputManager) 911inputReportEventArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1148if (e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 1182actionsArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1266actionsArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1279moveArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1365activateArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1371if ( e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent ) 1873if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 2237private InputManager _inputManager;
System\Windows\Input\NotifyInputEventArgs.cs (4)
22internal virtual void Reset(StagingAreaInputItem input, InputManager inputManager) 37public InputManager InputManager 49internal InputManager UnsecureInputManager 59private InputManager _inputManager;
System\Windows\Input\PreProcessInputEventArgs.cs (2)
15/// <see cref="InputManager.PreProcessInput"/> 24internal override void Reset(StagingAreaInputItem input, InputManager inputManager)
System\Windows\Input\ProcessInputEventArgs.cs (3)
15/// <see cref="InputManager.PreProcessInput"/> 18/// <see cref="InputManager.PostProcessInput"/> 27internal override void Reset(StagingAreaInputItem input, InputManager inputManager)
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
265_currentStylusLogic = new PointerLogic(InputManager.UnsecureCurrent); 269_currentStylusLogic = new WispLogic(InputManager.UnsecureCurrent);
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (7)
93private readonly InputManager _inputManager; 133internal PointerLogic(InputManager inputManager) 166if (e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 267args.RoutedEvent = InputManager.PreviewInputReportEvent; 285if (e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 345if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 1341input.RoutedEvent = InputManager.PreviewInputReportEvent;
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (6)
657inputReportEventArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 659InputManager.Current.ProcessInput(inputReportEventArgs); 870RoutedEvent = InputManager.PreviewInputReportEvent, 874InputManager.UnsecureCurrent.ProcessInput(irea); 1050InputManager.UnsecureCurrent.ProcessInput(lostCapture); 1057InputManager.UnsecureCurrent.ProcessInput(gotCapture);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (3)
496(e.StagingItem.Input.RoutedEvent != InputManager.InputReportEvent)) 509if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 524mouseDevice = InputManager.UnsecureCurrent.PrimaryMouseDevice;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (17)
23internal WispLogic(InputManager inputManager) 359input.RoutedEvent = InputManager.PreviewInputReportEvent; 443mouseArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 459if (e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 569args.RoutedEvent = InputManager.PreviewInputReportEvent; 615args.RoutedEvent = InputManager.PreviewInputReportEvent; 978if (e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 1168if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 1293actionsArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 1761inputReportArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 1800(e.StagingItem.Input.RoutedEvent != InputManager.InputReportEvent)) 1813if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 2574input.RoutedEvent = InputManager.PreviewInputReportEvent; 2800input.RoutedEvent = InputManager.PreviewInputReportEvent; 2851inputReportArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 3118internal void RegisterHwndForInput(InputManager inputManager, PresentationSource inputSource) 3651private readonly InputManager _inputManager;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (6)
369inputReportEventArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 1677InputManager inputManager = (InputManager)Dispatcher.InputManager; 1693inputReportArgs.RoutedEvent = InputManager.PreviewInputReportEvent; 1707InputManager inputManager = (InputManager)Dispatcher.InputManager;
System\Windows\Input\Stylus\Wisp\WispStylusPlugInCollection.cs (2)
78InputManager inputManager = (InputManager)element.Dispatcher.InputManager;
System\Windows\Input\TextComposition.cs (6)
74public TextComposition(InputManager inputManager, IInputElement source, string resultText) : this(inputManager, source, resultText, TextCompositionAutoComplete.On) 81public TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete) : this(inputManager, source, resultText, autoComplete, InputManager.Current.PrimaryKeyboardDevice) 96internal TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete, InputDevice inputDevice) 353internal InputManager _InputManager 393private readonly InputManager _inputManager;
System\Windows\Input\TextCompositionManager.cs (5)
217internal TextCompositionManager(InputManager inputManager) 591if(input.Report.Type == InputType.Text && input.RoutedEvent == InputManager.InputReportEvent) 626_deadCharTextComposition = new DeadCharTextComposition(_inputManager, (IInputElement)null, inputText , TextCompositionAutoComplete.Off, InputManager.Current.PrimaryKeyboardDevice); 648TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.Input.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice); 914private readonly InputManager _inputManager;
System\Windows\Input\TextServicesManager.cs (2)
29internal TextServicesManager(InputManager inputManager) 282private readonly InputManager _inputManager;
System\Windows\Input\TouchDevice.cs (2)
32_inputManager = InputManager.UnsecureCurrent; 1313private InputManager _inputManager;
System\Windows\Input\Win32KeyboardDevice.cs (1)
20internal Win32KeyboardDevice(InputManager inputManager)
System\Windows\Input\Win32MouseDevice.cs (1)
20internal Win32MouseDevice(InputManager inputManager)
System\Windows\InterOp\HwndAppCommandInputProvider.cs (1)
17_site = InputManager.Current.RegisterInputProvider(this);
System\Windows\InterOp\HwndKeyboardInputProvider.cs (1)
19_site = InputManager.Current.RegisterInputProvider(this);
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
22_site = InputManager.Current.RegisterInputProvider(this);
System\Windows\InterOp\HwndPointerInputProvider.cs (3)
69_site = InputManager.Current.RegisterInputProvider(this); 276RoutedEvent = InputManager.PreviewInputReportEvent, 280InputManager.UnsecureCurrent.ProcessInput(irea);
System\Windows\InterOp\HwndSource.cs (4)
456InputManager.SafeCurrentNotifyHitTestInvalidated(); 510InputManager.SafeCurrentNotifyHitTestInvalidated(); 615InputManager.SafeCurrentNotifyHitTestInvalidated(); 2404InputManager.UnsecureCurrent.RaiseTranslateAccelerator(bubbleArgs);
System\Windows\InterOp\HwndStylusInputProvider.cs (2)
31InputManager inputManager = InputManager.Current;
System\Windows\Media\MediaContext.cs (1)
1840InputManager.UnsecureCurrent.InvalidateInputDevices();
System\Windows\Media\Visual.cs (1)
2717System.Windows.Input.InputManager.SafeCurrentNotifyHitTestInvalidated();
System\Windows\OleServicesContext.cs (2)
166InputManager inputManager = (InputManager)Dispatcher.CurrentDispatcher.InputManager;
System\Windows\UIElement.cs (9)
1805if (InputManager.IsSynchronizedInput) 1830if (InputManager.IsSynchronizedInput) 1854if (args.Handled && (InputManager.SynchronizedInputState == SynchronizedInputStates.HadOpportunity)) 1863if(InputManager.IsSynchronizedInput) 1869InputManager.StartListeningSynchronizedInput(this, inputType); 1877InputManager.CancelSynchronizedInput(); 3679InputManager.SafeCurrentNotifyHitTestInvalidated(); 3782InputManager.SafeCurrentNotifyHitTestInvalidated(); 3913InputManager.SafeCurrentNotifyHitTestInvalidated();
System\Windows\UIElement3D.cs (9)
901InputManager.SafeCurrentNotifyHitTestInvalidated(); 1002InputManager.SafeCurrentNotifyHitTestInvalidated(); 1124InputManager.SafeCurrentNotifyHitTestInvalidated(); 1230if (InputManager.IsSynchronizedInput) 1244if (InputManager.IsSynchronizedInput) 1271if (args.Handled && (InputManager.SynchronizedInputState == SynchronizedInputStates.HadOpportunity)) 1281if (InputManager.IsSynchronizedInput) 1287InputManager.StartListeningSynchronizedInput(this, inputType); 1295InputManager.CancelSynchronizedInput();
PresentationFramework (16)
System\Windows\Controls\PopupControlService.cs (2)
27InputManager.Current.PostProcessInput += new ProcessInputEventHandler(OnPostProcessInput); 37if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent)
System\Windows\Controls\Primitives\ButtonBase.cs (1)
743return InputManager.Current.PrimaryMouseDevice.LeftButton == MouseButtonState.Released;
System\Windows\Controls\Primitives\MenuBase.cs (2)
893InputManager.UnsecureCurrent.PushMenuMode(_pushedMenuMode); 905InputManager.UnsecureCurrent.PopMenuMode(pushedMenuMode);
System\Windows\Documents\FrameworkRichTextComposition.cs (1)
26internal FrameworkRichTextComposition(InputManager inputManager, IInputElement source, object owner) : base(inputManager, source, owner)
System\Windows\Documents\FrameworkTextComposition.cs (1)
33internal FrameworkTextComposition(InputManager inputManager, IInputElement source, object owner) : base(inputManager, source, String.Empty, TextCompositionAutoComplete.Off)
System\Windows\Documents\TextStore.cs (2)
2053composition = new FrameworkRichTextComposition(InputManager.UnsecureCurrent, editor.UiScope, owner); 2057composition = new FrameworkTextComposition(InputManager.Current, editor.UiScope, owner);
System\Windows\Input\KeyboardNavigation.cs (4)
74InputManager inputManager = InputManager.Current; 812return InputManager.Current.MostRecentInputDevice is KeyboardDevice; 3390RawUIStateInputReport report = ExtractRawUIStateInputReport(inputEventArgs, InputManager.InputReportEvent);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
390case 296: t = () => typeof(InputManager); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5459typeof(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)
42InputManager.Current.PostProcessInput += new ProcessInputEventHandler(PostProcessInput); 43InputManager.Current.PreProcessInput += new PreProcessInputEventHandler(PreProcessInput);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
472return (InputManager.Current.MostRecentInputDevice is KeyboardDevice);
Microsoft\Windows\Controls\Ribbon\RibbonToolTipService.cs (1)
26InputManager.Current.PostProcessInput += new ProcessInputEventHandler(OnPostProcessInput);
WindowsFormsIntegration (6)
System\Windows\Integration\ApplicationInterop.cs (2)
89System.Windows.Input.InputManager.Current.IsInMenuMode) 129SWI.InputManager.Current.PrimaryKeyboardDevice.TextCompositionManager.CompleteDeadCharComposition();
System\Windows\Integration\ElementHost.cs (2)
78SWI.InputManager.Current.PostProcessInput += InputManager_PostProcessInput; 849SWI.InputManager.Current.PostProcessInput -= InputManager_PostProcessInput;
System\Windows\Integration\WindowsFormsHost.cs (2)
838SWI.InputManager.Current.PostProcessInput += InputManager_PostProcessInput; 847SWI.InputManager.Current.PostProcessInput -= InputManager_PostProcessInput;