1 instantiation of InputManager
PresentationCore (1)
Core\CSharp\System\Windows\Input\InputManager.cs (1)
162inputManager = new InputManager();
156 references to InputManager
PresentationCore (136)
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (26)
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 (InputElement.IsUIElement(InputManager.ListeningElement)) 298UIElement e = (UIElement)InputManager.ListeningElement; 302else if (InputElement.IsContentElement(InputManager.ListeningElement)) 304ContentElement ce = (ContentElement)InputManager.ListeningElement; 308else if (InputElement.IsUIElement3D(InputManager.ListeningElement)) 310UIElement3D e3D = (UIElement3D)InputManager.ListeningElement; 322switch (InputManager.SynchronizedInputState)
Core\CSharp\System\Windows\ContentElement.cs (7)
176if (InputManager.IsSynchronizedInput) 190if (InputManager.IsSynchronizedInput) 217if (args.Handled && (InputManager.SynchronizedInputState == SynchronizedInputStates.HadOpportunity)) 227if (InputManager.IsSynchronizedInput) 233InputManager.StartListeningSynchronizedInput(this, inputType); 241InputManager.CancelSynchronizedInput(); 709InputManager.SafeCurrentNotifyHitTestInvalidated();
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (1)
196InputManager.Current.PostProcessInput += new ProcessInputEventHandler(PostProcessInput);
Core\CSharp\System\Windows\Input\Command\CommandDevice.cs (4)
31internal CommandDevice( InputManager inputManager ) 33_inputManager = new SecurityCriticalData<InputManager>(inputManager); 107if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 315private SecurityCriticalData<InputManager> _inputManager;
Core\CSharp\System\Windows\Input\DeadCharTextComposition.cs (1)
43internal DeadCharTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete, InputDevice inputDevice) : base(inputManager, source, text, autoComplete, inputDevice)
Core\CSharp\System\Windows\Input\DefaultTextStore.cs (3)
164TextCompositionManager compmgr = InputManager.Current.PrimaryKeyboardDevice.TextCompositionManager; 176_composition = new DefaultTextStoreTextComposition(InputManager.Current, Keyboard.FocusedElement, result, TextCompositionAutoComplete.On); 207_composition = new DefaultTextStoreTextComposition(InputManager.Current, Keyboard.FocusedElement, "", TextCompositionAutoComplete.Off);
Core\CSharp\System\Windows\Input\DefaultTextStoreTextComposition.cs (1)
51internal DefaultTextStoreTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete) : base(inputManager, source, text, autoComplete)
Core\CSharp\System\Windows\Input\InputManager.cs (9)
29internal 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)); 49public static InputManager Current 70internal static InputManager UnsecureCurrent 153private static InputManager GetCurrentInputManagerImpl() 155InputManager inputManager = null; 158inputManager = dispatcher.InputManager as InputManager; 1069if(item.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 1076inputReport.RoutedEvent=InputManager.InputReportEvent;
Core\CSharp\System\Windows\Input\InputProviderSite.cs (6)
24internal InputProviderSite(InputManager inputManager, IInputProvider inputProvider) 26_inputManager = new SecurityCriticalDataClass<InputManager>(inputManager); 37public InputManager InputManager 53internal InputManager CriticalInputManager 122input.RoutedEvent=InputManager.PreviewInputReportEvent; 137private SecurityCriticalDataClass<InputManager> _inputManager;
Core\CSharp\System\Windows\Input\Keyboard.cs (1)
373KeyboardDevice keyboardDevice = InputManager.UnsecureCurrent.PrimaryKeyboardDevice;
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (6)
31protected KeyboardDevice(InputManager inputManager) 33_inputManager = new SecurityCriticalDataClass<InputManager>(inputManager); 747RawKeyboardInputReport keyboardInput = ExtractRawKeyboardInputReport(e, InputManager.PreviewInputReportEvent); 763RawKeyboardInputReport keyboardInput = ExtractRawKeyboardInputReport(e, InputManager.PreviewInputReportEvent); 1001RawKeyboardInputReport keyboardInput = ExtractRawKeyboardInputReport(e, InputManager.InputReportEvent); 1147private SecurityCriticalDataClass<InputManager> _inputManager;
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (2)
44_inputManager = InputManager.UnsecureCurrent; 593private InputManager _inputManager;
Core\CSharp\System\Windows\Input\Mouse.cs (1)
635mouseDevice = InputManager.UnsecureCurrent.PrimaryMouseDevice;
Core\CSharp\System\Windows\Input\MouseDevice.cs (11)
44internal MouseDevice(InputManager inputManager) 46_inputManager = new SecurityCriticalData<InputManager>(inputManager); 1005inputReportEventArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1267if (e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent) 1301actionsArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1316activateArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1398actionsArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1411moveArgs.RoutedEvent=InputManager.PreviewInputReportEvent; 1486if ( e.StagingItem.Input.RoutedEvent == InputManager.PreviewInputReportEvent ) 1991if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent) 2383private SecurityCriticalData<InputManager> _inputManager;
Core\CSharp\System\Windows\Input\NotifyInputEventArgs.cs (4)
29internal virtual void Reset(StagingAreaInputItem input, InputManager inputManager) 51public InputManager InputManager 68internal InputManager UnsecureInputManager 83private InputManager _inputManager;
Core\CSharp\System\Windows\Input\PreProcessInputEventArgs.cs (2)
16/// <see cref="InputManager.PreProcessInput"/> 29internal override void Reset(StagingAreaInputItem input, InputManager inputManager)
Core\CSharp\System\Windows\Input\ProcessInputEventArgs.cs (3)
19/// <see cref="InputManager.PreProcessInput"/> 22/// <see cref="InputManager.PostProcessInput"/> 35internal override void Reset(StagingAreaInputItem input, InputManager inputManager)
Core\CSharp\System\Windows\Input\TextComposition.cs (6)
91public TextComposition(InputManager inputManager, IInputElement source, string resultText) : this(inputManager, source, resultText, TextCompositionAutoComplete.On) 103public TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete) : this(inputManager, source, resultText, autoComplete, InputManager.Current.PrimaryKeyboardDevice) 123internal TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete, InputDevice inputDevice) 392internal InputManager _InputManager 437private readonly InputManager _inputManager;
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (5)
280internal TextCompositionManager(InputManager inputManager) 741if(input.Report.Type == InputType.Text && input.RoutedEvent == InputManager.InputReportEvent) 776_deadCharTextComposition = new DeadCharTextComposition(_inputManager, (IInputElement)null, inputText , TextCompositionAutoComplete.Off, InputManager.Current.PrimaryKeyboardDevice); 798TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.Input.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice); 1101private readonly InputManager _inputManager;
Core\CSharp\System\Windows\Input\TextServicesManager.cs (2)
41internal TextServicesManager(InputManager inputManager) 310private readonly InputManager _inputManager;
Core\CSharp\System\Windows\Input\TouchDevice.cs (2)
56_inputManager = InputManager.UnsecureCurrent; 1431private InputManager _inputManager;
Core\CSharp\System\Windows\Input\Win32KeyboardDevice.cs (1)
33internal Win32KeyboardDevice(InputManager inputManager)
Core\CSharp\System\Windows\Input\Win32MouseDevice.cs (1)
38internal Win32MouseDevice(InputManager inputManager)
Core\CSharp\System\Windows\Interop\HwndAppCommandInputProvider.cs (1)
26_site = new SecurityCriticalDataClass<InputProviderSite>(InputManager.Current.RegisterInputProvider(this));
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (1)
31_site = new SecurityCriticalDataClass<InputProviderSite>(InputManager.Current.RegisterInputProvider(this));
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (1)
31_site = new SecurityCriticalDataClass<InputProviderSite>(InputManager.Current.RegisterInputProvider(this));
Core\CSharp\System\Windows\Interop\HwndSource.cs (4)
539InputManager.SafeCurrentNotifyHitTestInvalidated(); 598InputManager.SafeCurrentNotifyHitTestInvalidated(); 717InputManager.SafeCurrentNotifyHitTestInvalidated(); 2769InputManager.UnsecureCurrent.RaiseTranslateAccelerator(bubbleArgs);
Core\CSharp\System\Windows\Interop\HwndStylusInputProvider.cs (2)
40InputManager inputManager = InputManager.Current;
Core\CSharp\System\Windows\Media\MediaContext.cs (1)
1913InputManager.UnsecureCurrent.InvalidateInputDevices();
Core\CSharp\System\Windows\Media\Visual.cs (1)
2759System.Windows.Input.InputManager.SafeCurrentNotifyHitTestInvalidated();
Core\CSharp\System\Windows\OleServicesContext.cs (2)
205InputManager inputManager = (InputManager)Dispatcher.CurrentDispatcher.InputManager;
Core\CSharp\System\Windows\UIElement.cs (9)
1830if (InputManager.IsSynchronizedInput) 1855if (InputManager.IsSynchronizedInput) 1879if (args.Handled && (InputManager.SynchronizedInputState == SynchronizedInputStates.HadOpportunity)) 1888if(InputManager.IsSynchronizedInput) 1894InputManager.StartListeningSynchronizedInput(this, inputType); 1902InputManager.CancelSynchronizedInput(); 3719InputManager.SafeCurrentNotifyHitTestInvalidated(); 3822InputManager.SafeCurrentNotifyHitTestInvalidated(); 3959InputManager.SafeCurrentNotifyHitTestInvalidated();
Core\CSharp\System\Windows\UIElement3D.cs (9)
924InputManager.SafeCurrentNotifyHitTestInvalidated(); 1025InputManager.SafeCurrentNotifyHitTestInvalidated(); 1153InputManager.SafeCurrentNotifyHitTestInvalidated(); 1259if (InputManager.IsSynchronizedInput) 1273if (InputManager.IsSynchronizedInput) 1300if (args.Handled && (InputManager.SynchronizedInputState == SynchronizedInputStates.HadOpportunity)) 1310if (InputManager.IsSynchronizedInput) 1316InputManager.StartListeningSynchronizedInput(this, inputType); 1324InputManager.CancelSynchronizedInput();
PresentationFramework (16)
src\Framework\System\Windows\Controls\PopupControlService.cs (2)
42InputManager.Current.PostProcessInput += new ProcessInputEventHandler(OnPostProcessInput); 58if (e.StagingItem.Input.RoutedEvent == InputManager.InputReportEvent)
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (1)
748return InputManager.Current.PrimaryMouseDevice.LeftButton == MouseButtonState.Released;
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (2)
919InputManager.UnsecureCurrent.PushMenuMode(_pushedMenuMode); 937InputManager.UnsecureCurrent.PopMenuMode(pushedMenuMode);
src\Framework\System\Windows\Documents\FrameworkRichTextComposition.cs (1)
36internal FrameworkRichTextComposition(InputManager inputManager, IInputElement source, object owner) : base(inputManager, source, owner)
src\Framework\System\Windows\Documents\FrameworkTextComposition.cs (1)
45internal FrameworkTextComposition(InputManager inputManager, IInputElement source, object owner) : base(inputManager, source, String.Empty, TextCompositionAutoComplete.Off)
src\Framework\System\Windows\Documents\TextStore.cs (2)
1933composition = new FrameworkRichTextComposition(InputManager.UnsecureCurrent, editor.UiScope, owner); 1937composition = new FrameworkTextComposition(InputManager.Current, editor.UiScope, owner);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
91InputManager inputManager = InputManager.Current; 875return InputManager.Current.MostRecentInputDevice is KeyboardDevice; 3512RawUIStateInputReport report = ExtractRawUIStateInputReport(inputEventArgs, InputManager.InputReportEvent);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
388case 296: t = () => typeof(InputManager); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5457typeof(System.Windows.Input.InputManager),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5840case KnownElements.InputManager: t = typeof(System.Windows.Input.InputManager); break;
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (4)
171InputManager.Current.PreNotifyInput += new NotifyInputEventHandler(FocusScopeManager.Instance.InputManager_PreNotifyInput); 172InputManager.Current.PostNotifyInput += new NotifyInputEventHandler(FocusScopeManager.Instance.InputManager_PostNotifyInput); 190InputManager.Current.PreNotifyInput -= new NotifyInputEventHandler(this.InputManager_PreNotifyInput); 191InputManager.Current.PostNotifyInput -= new NotifyInputEventHandler(this.InputManager_PostNotifyInput);