46 references to CriticalFromVisual
PresentationCore (46)
MS\Internal\Interop\TipTsfHelper.cs (1)
190
return PresentationSource.
CriticalFromVisual
(focusedObject) as HwndSource;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
45
isConnected = PresentationSource.
CriticalFromVisual
(visual ) != null;
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
175
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(_owner);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
177
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(_owner);
200
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(_owner);
494
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(_owner);
System\Windows\Input\AccessKeyManager.cs (1)
453
source = PresentationSource.
CriticalFromVisual
(containingVisual);
System\Windows\Input\FocusManager.cs (2)
143
if (PresentationSource.
CriticalFromVisual
(focusScope) != PresentationSource.
CriticalFromVisual
(focusedElement))
System\Windows\Input\InputElement.cs (2)
270
HwndSource sourceFrom = PresentationSource.
CriticalFromVisual
(rootFrom) as HwndSource;
271
HwndSource sourceTo = PresentationSource.
CriticalFromVisual
(rootTo) as HwndSource;
System\Windows\Input\InputMethod.cs (1)
1602
PresentationSource source = PresentationSource.
CriticalFromVisual
(containingVisual);
System\Windows\Input\Keyboard.cs (1)
417
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(uie);
System\Windows\Input\KeyboardDevice.cs (2)
159
PresentationSource source = PresentationSource.
CriticalFromVisual
(containingVisual);
603
presentationSource = PresentationSource.
CriticalFromVisual
(visualContainer);
System\Windows\Input\ManipulationDevice.cs (1)
26
_activeSource = PresentationSource.
CriticalFromVisual
(element);
System\Windows\Input\ManipulationLogic.cs (1)
574
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
((Visual)newContainer);
System\Windows\Input\MouseDevice.cs (3)
351
PresentationSource captureSource = PresentationSource.
CriticalFromVisual
(containingVisual);
558
relativePresentationSource = PresentationSource.
CriticalFromVisual
(containingVisual);
792
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(visual);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
681
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(visual);
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (1)
124
PresentationSource relativePresentationSource = PresentationSource.
CriticalFromVisual
(containingVisual);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
719
relativePresentationSource = PresentationSource.
CriticalFromVisual
(containingVisual);
1029
PresentationSource source = PresentationSource.
CriticalFromVisual
(uiElement as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (1)
58
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(element as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (2)
534
source = PresentationSource.
CriticalFromVisual
(_activeMousePlugInCollection.Element as Visual);
579
source = PresentationSource.
CriticalFromVisual
(directlyOverVisual);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
1851
source = PresentationSource.
CriticalFromVisual
(_activeMousePlugInCollection.Element as Visual);
1895
source = PresentationSource.
CriticalFromVisual
(directlyOverVisual);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
586
PresentationSource source = PresentationSource.
CriticalFromVisual
(uiElement as Visual);
1173
relativePresentationSource = PresentationSource.
CriticalFromVisual
(containingVisual);
1512
PresentationSource capturedSource = PresentationSource.
CriticalFromVisual
(containingVisual);
1723
mouseInputSource = PresentationSource.
CriticalFromVisual
(mouseCapturedVisual);
System\Windows\Input\Stylus\Wisp\WispStylusPlugInCollection.cs (1)
68
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(element as Visual);
System\Windows\Input\TouchDevice.cs (1)
568
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(visual);
System\Windows\InterOp\HwndKeyboardInputProvider.cs (3)
349
HwndSource hwndSource = PresentationSource.
CriticalFromVisual
(focusedDO) as HwndSource;
475
HwndSource hwndSource = PresentationSource.
CriticalFromVisual
(restoreFocusDO) as HwndSource;
498
HwndSource hwndSource = PresentationSource.
CriticalFromVisual
(restoreFocusDO) as HwndSource;
System\Windows\InterOp\HwndSource.cs (2)
2067
HwndSource mnemonicScope = (focusObject == null ? null : PresentationSource.
CriticalFromVisual
(focusObject) as HwndSource);
2375
PresentationSource.
CriticalFromVisual
((DependencyObject)focusElement) != this)
System\Windows\PresentationSource.cs (4)
82
return
CriticalFromVisual
(visual);
96
return
CriticalFromVisual
(dependencyObject);
576
PresentationSource baseSource =
CriticalFromVisual
(visuals[0]);
579
if (baseSource !=
CriticalFromVisual
(visuals[i]))
System\Windows\UIElement.cs (1)
3856
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(this);
System\Windows\UIElement3D.cs (1)
1081
PresentationSource presentationSource = PresentationSource.
CriticalFromVisual
(this);