46 references to CriticalFromVisual
PresentationCore (46)
MS\Internal\Interop\TipTsfHelper.cs (1)
195return PresentationSource.CriticalFromVisual(focusedObject) as HwndSource;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
50isConnected = PresentationSource.CriticalFromVisual(visual ) != null;
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
184PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
187PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner); 210PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner); 504PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner);
System\Windows\Input\AccessKeyManager.cs (1)
466source = PresentationSource.CriticalFromVisual(containingVisual);
System\Windows\Input\FocusManager.cs (2)
154if (PresentationSource.CriticalFromVisual(focusScope) != PresentationSource.CriticalFromVisual(focusedElement))
System\Windows\Input\InputElement.cs (2)
275HwndSource sourceFrom = PresentationSource.CriticalFromVisual(rootFrom) as HwndSource; 276HwndSource sourceTo = PresentationSource.CriticalFromVisual(rootTo) as HwndSource;
System\Windows\Input\InputMethod.cs (1)
1616PresentationSource source = PresentationSource.CriticalFromVisual(containingVisual);
System\Windows\Input\Keyboard.cs (1)
425PresentationSource presentationSource = PresentationSource.CriticalFromVisual(uie);
System\Windows\Input\KeyboardDevice.cs (2)
172PresentationSource source = PresentationSource.CriticalFromVisual(containingVisual); 604presentationSource = PresentationSource.CriticalFromVisual(visualContainer);
System\Windows\Input\ManipulationDevice.cs (1)
36_activeSource = PresentationSource.CriticalFromVisual(element);
System\Windows\Input\ManipulationLogic.cs (1)
581PresentationSource presentationSource = PresentationSource.CriticalFromVisual((Visual)newContainer);
System\Windows\Input\MouseDevice.cs (3)
366PresentationSource captureSource = PresentationSource.CriticalFromVisual(containingVisual); 573relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 807PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
698PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual);
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (1)
127PresentationSource relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
726relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 1036PresentationSource source = PresentationSource.CriticalFromVisual(uiElement as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (1)
68PresentationSource presentationSource = PresentationSource.CriticalFromVisual(element as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (2)
547source = PresentationSource.CriticalFromVisual(_activeMousePlugInCollection.Element as Visual); 592source = PresentationSource.CriticalFromVisual(directlyOverVisual);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
1848source = PresentationSource.CriticalFromVisual(_activeMousePlugInCollection.Element as Visual); 1892source = PresentationSource.CriticalFromVisual(directlyOverVisual);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
591PresentationSource source = PresentationSource.CriticalFromVisual(uiElement as Visual); 1174relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 1513PresentationSource capturedSource = PresentationSource.CriticalFromVisual(containingVisual); 1722mouseInputSource = PresentationSource.CriticalFromVisual(mouseCapturedVisual);
System\Windows\Input\Stylus\Wisp\WispStylusPlugInCollection.cs (1)
78PresentationSource presentationSource = PresentationSource.CriticalFromVisual(element as Visual);
System\Windows\Input\TouchDevice.cs (1)
581PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual);
System\Windows\InterOp\HwndKeyboardInputProvider.cs (3)
356HwndSource hwndSource = PresentationSource.CriticalFromVisual(focusedDO) as HwndSource; 482HwndSource hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as HwndSource; 505HwndSource hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as HwndSource;
System\Windows\InterOp\HwndSource.cs (2)
2083HwndSource mnemonicScope = (focusObject == null ? null : PresentationSource.CriticalFromVisual(focusObject) as HwndSource); 2391PresentationSource.CriticalFromVisual((DependencyObject)focusElement) != this)
System\Windows\PresentationSource.cs (4)
93return CriticalFromVisual(visual); 107return CriticalFromVisual(dependencyObject); 604PresentationSource baseSource = CriticalFromVisual(visuals[0]); 609PresentationSource currentSource = CriticalFromVisual(visuals[i]);
System\Windows\UIElement.cs (1)
3877PresentationSource presentationSource = PresentationSource.CriticalFromVisual(this);
System\Windows\UIElement3D.cs (1)
1098PresentationSource presentationSource = PresentationSource.CriticalFromVisual(this);