1 type derived from PresentationSource
PresentationCore (1)
System\Windows\InterOp\HwndSource.cs (1)
21public class HwndSource : PresentationSource, IDisposable, IWin32Window, IKeyboardInputSink
351 references to PresentationSource
Microsoft.CodeAnalysis.EditorFeatures.Wpf (4)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (4)
29private PresentationSource _presentationSource; 64PresentationSource.AddSourceChangedHandler(this, OnPresentationSourceChanged); 181private void ConnectToPresentationSource(PresentationSource presentationSource) 377PresentationSource.RemoveSourceChangedHandler(this, OnPresentationSourceChanged);
PresentationCore (231)
MS\Internal\Automation\EventMap.cs (4)
254foreach (PresentationSource source in PresentationSource.CriticalCurrentSources) 260PresentationSource source = (PresentationSource)state;
MS\Internal\Interop\TipTsfHelper.cs (1)
191return PresentationSource.CriticalFromVisual(focusedObject) as HwndSource;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (7)
33public static Point ClientToRoot(Point point, PresentationSource presentationSource) 39public static Point TryClientToRoot(Point point, PresentationSource presentationSource, bool throwOnError, out bool success) 65public static Point RootToClient(Point point, PresentationSource presentationSource) 164public static Point ClientToScreen(Point pointClient, PresentationSource presentationSource) 186internal static Point ScreenToClient(Point pointScreen, PresentationSource presentationSource) 221internal static Rect ElementToRoot(Rect rectElement, Visual element, PresentationSource presentationSource) 245internal static Rect RootToClient(Rect rectRoot, PresentationSource presentationSource)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
46isConnected = PresentationSource.CriticalFromVisual(visual ) != null;
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
176PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (6)
178PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner); 201PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner); 495PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner);
System\Windows\Diagnostics\VisualDiagnostics.cs (2)
145s_ActiveHwndSource = PresentationSource.FromDependencyObject(args.Parent) as System.Windows.Interop.HwndSource; 321(s_ActiveHwndSource != PresentationSource.FromDependencyObject(d));
System\Windows\DragDrop.cs (1)
1273private Point GetClientPointFromScreenPoint(long dragPoint, PresentationSource source)
System\Windows\Input\AccessKeyManager.cs (6)
357(scope is PresentationSource) && (Keyboard.Modifiers & ModifierKeys.Alt) != ModifierKeys.Alt) 440private PresentationSource GetSourceForElement(IInputElement element) 442PresentationSource source = null; 454source = PresentationSource.CriticalFromVisual(containingVisual); 463private PresentationSource GetActiveSource() 472private PresentationSource CriticalGetActiveSource()
System\Windows\Input\Command\CommandDevice.cs (1)
40public override PresentationSource ActiveSource
System\Windows\Input\FocusManager.cs (2)
144if (PresentationSource.CriticalFromVisual(focusScope) != PresentationSource.CriticalFromVisual(focusedElement))
System\Windows\Input\InputDevice.cs (1)
32public abstract PresentationSource ActiveSource { get; }
System\Windows\Input\InputElement.cs (2)
271HwndSource sourceFrom = PresentationSource.CriticalFromVisual(rootFrom) as HwndSource; 272HwndSource sourceTo = PresentationSource.CriticalFromVisual(rootTo) as HwndSource;
System\Windows\Input\InputManager.cs (2)
326public void PushMenuMode(PresentationSource menuSite) 347public void PopMenuMode(PresentationSource menuSite)
System\Windows\Input\InputMethod.cs (2)
1603PresentationSource source = PresentationSource.CriticalFromVisual(containingVisual);
System\Windows\Input\InputReport.cs (3)
33protected InputReport(PresentationSource inputSource, InputType type, InputMode mode, int timestamp) 48public PresentationSource InputSource => _inputSource; 101private readonly PresentationSource _inputSource;
System\Windows\Input\Keyboard.cs (2)
418PresentationSource presentationSource = PresentationSource.CriticalFromVisual(uie);
System\Windows\Input\KeyboardDevice.cs (6)
79public override PresentationSource ActiveSource => _activeSource; 160PresentationSource source = PresentationSource.CriticalFromVisual(containingVisual); 600PresentationSource presentationSource = null; 604presentationSource = PresentationSource.CriticalFromVisual(visualContainer); 1035private PresentationSource _activeSource;
System\Windows\Input\KeyEventArgs.cs (4)
28public KeyEventArgs(KeyboardDevice keyboard, PresentationSource inputSource, int timestamp, Key key) : base(keyboard, timestamp) 47public PresentationSource InputSource 192internal PresentationSource UnsafeInputSource 216private PresentationSource _inputSource;
System\Windows\Input\ManipulationDevice.cs (3)
27_activeSource = PresentationSource.CriticalFromVisual(element); 51public override PresentationSource ActiveSource 503private PresentationSource _activeSource;
System\Windows\Input\ManipulationLogic.cs (2)
575PresentationSource presentationSource = PresentationSource.CriticalFromVisual((Visual)newContainer);
System\Windows\Input\Mouse.cs (2)
469PresentationSource inputSource = PresentationSource.FromDependencyObject(InputElement.GetContainingVisual(relativeTo as DependencyObject));
System\Windows\Input\MouseDevice.cs (19)
119PresentationSource activeSource = CriticalActiveSource; 146PresentationSource activeSource = CriticalActiveSource; 167protected Point GetClientPosition(PresentationSource presentationSource) 199public override PresentationSource ActiveSource => _inputSource; 204internal PresentationSource CriticalActiveSource => _inputSource; 352PresentationSource captureSource = PresentationSource.CriticalFromVisual(containingVisual); 550PresentationSource relativePresentationSource = null; 559relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 793PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual); 879PresentationSource activeSource = CriticalActiveSource; 2077internal static IInputElement GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource) 2086internal static IInputElement GlobalHitTest(Point ptClient, PresentationSource inputSource) 2094private static void GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit) 2132internal static IInputElement LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource) 2141internal static IInputElement LocalHitTest(Point ptClient, PresentationSource inputSource) 2148private static void LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit) 2267private PresentationSource _inputSource;
System\Windows\Input\RawAppCommandInputReport.cs (1)
44PresentationSource inputSource,
System\Windows\Input\RawKeyboardInputReport.cs (1)
49PresentationSource inputSource,
System\Windows\Input\RawMouseInputReport.cs (1)
48PresentationSource inputSource,
System\Windows\Input\RawTextInputReport.cs (1)
43PresentationSource inputSource,
System\Windows\Input\RawUIStateInputReport.cs (1)
32PresentationSource inputSource,
System\Windows\Input\Stylus\Common\RawStylusInputReport.cs (2)
171PresentationSource inputSource, 227PresentationSource inputSource,
System\Windows\Input\Stylus\Common\RawStylusSystemGestureInputReport.cs (2)
88PresentationSource inputSource, 141PresentationSource inputSource,
System\Windows\Input\Stylus\Common\StylusDevice.cs (3)
74public override PresentationSource ActiveSource 319internal static IInputElement LocalHitTest(PresentationSource inputSource, Point pt) 324internal static IInputElement GlobalHitTest(PresentationSource inputSource, Point pt)
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (2)
88internal abstract PresentationSource ActiveSource { get; } 99internal abstract PresentationSource CriticalActiveSource { get; }
System\Windows\Input\Stylus\Common\StylusLogic.cs (5)
393protected Matrix GetAndCacheTransformToDeviceMatrix(PresentationSource source) 418internal abstract Point DeviceUnitsFromMeasureUnits(PresentationSource source, Point measurePoint); 425internal abstract Point MeasureUnitsFromDeviceUnits(PresentationSource source, Point measurePoint); 682PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual);
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (2)
519PresentationSource.AddSourceChangedHandler(_element, _sourceChangedEventHandler); // has a security linkdemand 550PresentationSource.RemoveSourceChangedHandler(_element, _sourceChangedEventHandler);
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (3)
125PresentationSource relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 140internal void ChangeActiveSource(PresentationSource activeSource)
System\Windows\Input\Stylus\Common\TabletDevice.cs (1)
55public override PresentationSource ActiveSource
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (1)
97internal abstract PresentationSource ActiveSource { get; }
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (5)
109internal Dictionary<PresentationSource, PointerStylusPlugInManager> PlugInManagers 113} = new Dictionary<PresentationSource, PointerStylusPlugInManager>(); 471internal override Point DeviceUnitsFromMeasureUnits(PresentationSource source, Point measurePoint) 487internal override Point MeasureUnitsFromDeviceUnits(PresentationSource source, Point devicePoint) 1240internal PointerStylusPlugInManager GetManagerForSource(PresentationSource source)
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (9)
70private PresentationSource _inputSource; 182internal override PresentationSource ActiveSource => _inputSource; 330internal override PresentationSource CriticalActiveSource => _inputSource; 712PresentationSource relativePresentationSource = null; 720relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 785internal void Update(HwndPointerInputProvider provider, PresentationSource inputSource, 897internal IInputElement FindTarget(PresentationSource inputSource, Point position) 1030PresentationSource source = PresentationSource.CriticalFromVisual(uiElement as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (2)
59PresentationSource presentationSource = PresentationSource.CriticalFromVisual(element as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (5)
24internal PointerStylusPlugInManager(PresentationSource source) 501PresentationSource source; 535source = PresentationSource.CriticalFromVisual(_activeMousePlugInCollection.Element as Visual); 580source = PresentationSource.CriticalFromVisual(directlyOverVisual); 647internal PresentationSource _inputSource;
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
191internal override PresentationSource ActiveSource
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
14internal PenContexts(WispLogic stylusLogic, PresentationSource inputSource)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (15)
82PresentationSource inputSource) 128PresentationSource inputSource) 1266PresentationSource mouseSource = _inputManager.PrimaryMouseDevice.CriticalActiveSource; 1748PresentationSource mouseInputSource = stylusDevice.GetMousePresentationSource(); 1818PresentationSource source; 1852source = PresentationSource.CriticalFromVisual(_activeMousePlugInCollection.Element as Visual); 1896source = PresentationSource.CriticalFromVisual(directlyOverVisual); 2836PresentationSource mouseInputSource = stylusDevice.GetMousePresentationSource(); 2937private static bool InWindowClientRect(Point ptClient, PresentationSource inputSource) 3141internal void RegisterHwndForInput(InputManager inputManager, PresentationSource inputSource) 3235internal PenContexts GetPenContextsFromHwnd(PresentationSource presentationSource) 3283internal PenContext GetStylusPenContextForHwnd(PresentationSource presentationSource, int tabletDeviceId) 3590internal Matrix GetTabletToViewTransform(PresentationSource source, TabletDevice tabletDevice) 3607internal override Point DeviceUnitsFromMeasureUnits(PresentationSource source, Point measurePoint) 3620internal override Point MeasureUnitsFromDeviceUnits(PresentationSource source, Point measurePoint)
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (21)
135internal override PresentationSource ActiveSource => _inputSource; 140internal override PresentationSource CriticalActiveSource => _inputSource; 587PresentationSource source = PresentationSource.CriticalFromVisual(uiElement as Visual); 967internal IInputElement FindTarget(PresentationSource inputSource, Point position) 1166PresentationSource relativePresentationSource = null; 1174relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 1286private GeneralTransform GetTabletToElementTransform(PresentationSource source, IInputElement relativeTo) 1408PresentationSource inputSource = DetermineValidSource(report.InputSource, _eventStylusPoints, report.PenContext.Contexts); 1499private PresentationSource DetermineValidSource(PresentationSource inputSource, StylusPointCollection stylusPoints, PenContexts penContextsOfPoints) 1507PresentationSource newSource = null; 1513PresentationSource capturedSource = PresentationSource.CriticalFromVisual(containingVisual); 1626PresentationSource inputSource = DetermineValidSource(report.InputSource, _eventStylusPoints, report.PenContext.Contexts); 1663PresentationSource mouseInputSource = GetMousePresentationSource(); 1708internal PresentationSource GetMousePresentationSource() 1713PresentationSource mouseInputSource = null; 1724mouseInputSource = PresentationSource.CriticalFromVisual(mouseCapturedVisual); 1911PresentationSource activeSource = CriticalActiveSource; 1971private PresentationSource _inputSource;
System\Windows\Input\Stylus\Wisp\WispStylusPlugInCollection.cs (2)
69PresentationSource presentationSource = PresentationSource.CriticalFromVisual(element as Visual);
System\Windows\Input\Stylus\Wisp\WispTabletDevice.cs (1)
145internal override PresentationSource ActiveSource
System\Windows\Input\TouchDevice.cs (7)
109public sealed override PresentationSource ActiveSource 117protected void SetActiveSource(PresentationSource activeSource) 261private static IInputElement GlobalHitTest(Point pt, PresentationSource inputSource) 266private static IInputElement LocalHitTest(Point pt, PresentationSource inputSource) 569PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual); 1310private PresentationSource _activeSource;
System\Windows\InterOp\HwndKeyboardInputProvider.cs (3)
350HwndSource hwndSource = PresentationSource.CriticalFromVisual(focusedDO) as HwndSource; 476HwndSource hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as HwndSource; 499HwndSource hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as HwndSource;
System\Windows\InterOp\HwndMouseInputProvider.cs (2)
214HwndSource inputSource = PresentationSource.FromDependencyObject(containingVisual) as HwndSource; 1233PresentationSource source = _source;
System\Windows\InterOp\HwndSource.cs (4)
677foreach (PresentationSource source in PresentationSource.CriticalCurrentSources) 2068HwndSource mnemonicScope = (focusObject == null ? null : PresentationSource.CriticalFromVisual(focusObject) as HwndSource); 2376PresentationSource.CriticalFromVisual((DependencyObject)focusElement) != this)
System\Windows\Media\Visual.cs (4)
4722PresentationSource inputSource = PresentationSource.FromVisual(this); 4751PresentationSource inputSource = PresentationSource.FromVisual(this);
System\Windows\PresentationSource.cs (28)
80public static PresentationSource FromVisual(Visual visual) 94public static PresentationSource FromDependencyObject(DependencyObject dependencyObject) 419PresentationSource oldSource = null; 429oldSource = (PresentationSource)oldRoot.GetValue(RootSourceProperty); 459PresentationSource testSource = (PresentationSource)element.GetValue(CachedSourceProperty); 529internal static PresentationSource CriticalFromVisual(DependencyObject v) 539internal static PresentationSource CriticalFromVisual(DependencyObject v, bool enable2DTo3DTransition) 543PresentationSource source = FindSource(v, enable2DTo3DTransition); 560PresentationSource ps = (PresentationSource)arg; 577PresentationSource baseSource = CriticalFromVisual(visuals[0]); 629element.SetValue(CachedSourceProperty, PresentationSource.FindSource(element)); 644private static PresentationSource FindSource(DependencyObject o) 654private static PresentationSource FindSource(DependencyObject o, bool enable2DTo3DTransition) 656PresentationSource source = null; 665source = (PresentationSource)v.GetValue(RootSourceProperty); 676PresentationSource realSource = FindSource(doTarget); 677PresentationSource cachedSource = (PresentationSource)doTarget.GetValue(CachedSourceProperty); 722= DependencyProperty.RegisterAttached("RootSource", typeof(PresentationSource), typeof(PresentationSource), 723new PropertyMetadata((PresentationSource)null)); 730= DependencyProperty.RegisterAttached("CachedSource", typeof(PresentationSource), typeof(PresentationSource), 731new PropertyMetadata((PresentationSource)null)); 734private static readonly DependencyProperty GetsSourceChangedEventProperty = DependencyProperty.RegisterAttached("IsBeingWatched", typeof(bool), typeof(PresentationSource), new PropertyMetadata((bool)false)); 739private static readonly RoutedEvent SourceChangedEvent = EventManager.RegisterRoutedEvent("SourceChanged", RoutingStrategy.Direct, typeof(SourceChangedEventHandler), typeof(PresentationSource));
System\Windows\SourceChangedEventArgs.cs (8)
21public SourceChangedEventArgs(PresentationSource oldSource, 22PresentationSource newSource) 43public SourceChangedEventArgs(PresentationSource oldSource, 44PresentationSource newSource, 57public PresentationSource OldSource => _oldSource; 62public PresentationSource NewSource => _newSource; 97private readonly PresentationSource _oldSource; 98private readonly PresentationSource _newSource;
System\Windows\UIElement.cs (3)
1577PresentationSource.OnVisualAncestorChanged(uie, e); 3857PresentationSource presentationSource = PresentationSource.CriticalFromVisual(this);
System\Windows\UIElement3D.cs (3)
277PresentationSource.OnVisualAncestorChanged(uie3D, e); 1082PresentationSource presentationSource = PresentationSource.CriticalFromVisual(this);
PresentationFramework (100)
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
172if (PresentationSource.FromVisual(annotatedElement) == null)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
283HwndSource hwndSource = PresentationSource.CriticalFromVisual(findToolBar) as HwndSource;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (2)
65PresentationSource source = PresentationSource.CriticalFromVisual(relativeTo);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
46isConnected = PresentationSource.CriticalFromVisual(visual ) != null;
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
142HwndSource hwndSource = PresentationSource.CriticalFromVisual(uiScope) as HwndSource; 163HwndSource hwndSource = PresentationSource.CriticalFromVisual(uiScope) as HwndSource;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
60PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope); 102PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope);
System\Windows\Controls\ComboBox.cs (1)
1931HwndSource source = PresentationSource.CriticalFromVisual(itemsHost) as HwndSource;
System\Windows\Controls\Menu.cs (5)
241System.Windows.Interop.HwndSource source = PresentationSource.CriticalFromVisual(this) as System.Windows.Interop.HwndSource; 335PresentationSource source = sender as PresentationSource; 336PresentationSource mySource = null; 338mySource = PresentationSource.CriticalFromVisual(this);
System\Windows\Controls\PopupControlService.cs (11)
63PresentationSource source = PresentationSource.CriticalFromVisual((DependencyObject)directlyOver); 846PresentationSource presentationSource = (owner != null) ? PresentationSource.CriticalFromVisual(owner) : null; 923PresentationSource presentationSource = (owner != null) ? PresentationSource.CriticalFromVisual(owner) : null; 1067return PresentationSource.CriticalFromVisual(uie) == null; 1358internal ConvexHull(PresentationSource source, List<NativeMethods.RECT> rects) 1590PresentationSource mouseSource = Mouse.PrimaryDevice.CriticalActiveSource; 1642internal bool ContainsPoint(PresentationSource source, int x, int y) 1724PresentationSource _source;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
108if (!PresentationSource.IsUnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
System\Windows\Controls\Primitives\MenuBase.cs (3)
890_pushedMenuMode = PresentationSource.CriticalFromVisual(this); 902PresentationSource pushedMenuMode = _pushedMenuMode; 929private PresentationSource _pushedMenuMode;
System\Windows\Controls\Primitives\Popup.cs (2)
3422private static PresentationSource GetPresentationSource(Visual visual) 3424return (visual != null ? PresentationSource.CriticalFromVisual(visual) : null);
System\Windows\Controls\ScrollViewer.cs (1)
1648if (!PresentationSource.IsUnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
System\Windows\Controls\TextAdaptor.cs (4)
391PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual); 431PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual);
System\Windows\Controls\WebBrowser.cs (2)
733PresentationSource pSource = PresentationSource.CriticalFromVisual(this);
System\windows\Documents\CaretElement.cs (4)
968PresentationSource source = PresentationSource.CriticalFromVisual(this); 1057PresentationSource source = null; 1058source = PresentationSource.CriticalFromVisual(this);
System\Windows\Documents\ImmComposition.cs (5)
65HwndSource source = PresentationSource.CriticalFromVisual(scope) as HwndSource; 100PresentationSource.RemoveSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged)); 123PresentationSource.RemoveSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged)); 131PresentationSource.AddSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged)); 270PresentationSource.RemoveSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged));
System\windows\Documents\TextEditorContextMenu.cs (2)
298PresentationSource source = PresentationSource.CriticalFromVisual(This.UiScope);
System\windows\Documents\TextEditorDragDrop.cs (2)
652PresentationSource source = null; 654source = PresentationSource.CriticalFromVisual(_textEditor.UiScope);
System\windows\Documents\TextEditorTyping.cs (3)
480PresentationSource.AddSourceChangedHandler(element, OnSourceChanged); 490PresentationSource.RemoveSourceChangedHandler(element, OnSourceChanged); 1601IWin32Window win32Window = PresentationSource.CriticalFromVisual(This.UiScope) as IWin32Window;
System\Windows\Documents\TextStore.cs (10)
931PresentationSource source; 1007PresentationSource source; 1132PresentationSource source; 2600private void GetVisualInfo(out PresentationSource source, out IWin32Window win32Window, out ITextView view) 2602source = PresentationSource.CriticalFromVisual(RenderScope); 2614private static UnsafeNativeMethods.RECT TransformRootRectToScreenCoordinates(Point milPointTopLeft, Point milPointBottomRight, IWin32Window win32Window, PresentationSource source) 2836PresentationSource source = null; 2838source = PresentationSource.CriticalFromVisual((Visual)RenderScope); 3299win32Window = PresentationSource.CriticalFromVisual(RenderScope) as IWin32Window; 3303win32Window = PresentationSource.FromVisual(RenderScope) as IWin32Window;
System\Windows\FrameworkContentElement.cs (1)
692if (dp != null && dp.OwnerType == typeof(PresentationSource) && dp.Name == "RootSource")
System\Windows\FrameworkElement.cs (1)
2064if (dp != null && dp.OwnerType == typeof(PresentationSource) && dp.Name == "RootSource")
System\Windows\Generated\FrameworkContentElement.cs (1)
424PresentationSource.OnAncestorChanged(this);
System\Windows\Input\KeyboardNavigation.cs (6)
149PresentationSource source = PresentationSource.CriticalFromVisual(d); 1099IKeyboardInputSink inputSink = PresentationSource.CriticalFromVisual(visual) as IKeyboardInputSink; 3267PresentationSource source = null; 3272source = (eventSourceVisual != null) ? PresentationSource.CriticalFromVisual(eventSourceVisual) : null; 3385PresentationSource source;
System\Windows\Interop\HwndHost.cs (14)
337PresentationSource source = null; 341source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */); 388private NativeMethods.RECT CalculateAssignedRC(PresentationSource source) 499PresentationSource.RemoveSourceChangedHandler(this, new SourceChangedEventHandler(OnSourceChanged)); 562PresentationSource source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */); 828PresentationSource.AddSourceChangedHandler(this, new SourceChangedEventHandler(OnSourceChanged)); 857IKeyboardInputSink source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */) as IKeyboardInputSink; 926PresentationSource source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */); 939PresentationSource goingThrough3DSource = PresentationSource.CriticalFromVisual(this, true /* enable2DTo3DTransition */); 1064PresentationSource source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
580case 486: t = () => typeof(PresentationSource); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8723typeof(System.Windows.PresentationSource),
System\Windows\Markup\KnownTypes.cs (1)
6034case KnownElements.PresentationSource: t = typeof(System.Windows.PresentationSource); break;
System\Windows\SystemResources.cs (4)
1231PresentationSource source = (PresentationSource)argsArray[0]; 1306foreach (PresentationSource source in PresentationSource.CriticalCurrentSources)
System\Windows\VisualStateManager.cs (2)
312controlInTree = (PresentationSource.CriticalFromVisual(control) != null); 320stateGroupsRootInTree = (PresentationSource.CriticalFromVisual(stateGroupsRoot) != null);
System\Windows\Window.cs (1)
7022if (!PresentationSource.IsUnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\KeyTipService.cs (2)
799PresentationSource targetSource = RibbonHelper.GetPresentationSourceFromVisual(_currentGlobalScope as Visual); 1256PresentationSource targetSource = RibbonHelper.GetPresentationSourceFromVisual(_currentGlobalScope as Visual);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (5)
130PresentationSource.AddSourceChangedHandler(this, new SourceChangedEventHandler(OnSourceChangedHandler)); 2339PresentationSource targetSource = sender as PresentationSource; 2351PresentationSource targetSource = sender as PresentationSource;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1041PresentationSource mouseSource = Mouse.PrimaryDevice.ActiveSource; 2503public static PresentationSource GetPresentationSourceFromVisual(Visual visual) 2511return PresentationSource.CriticalFromVisual(visual); 2906hwndSource = PresentationSource.FromVisual(targetVisual) as HwndSource;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
288CompositionTarget compositionTarget = PresentationSource.FromVisual(rw).CompositionTarget;
WindowsFormsIntegration (4)
System\Windows\Integration\ApplicationInterop.cs (2)
418return (PresentationSource.FromVisual(x) != null) ? (PresentationSource.FromVisual(x)).RootVisual : null;
System\Windows\Integration\WindowsFormsHost.cs (2)
985PresentationSource presentationSource = PresentationSource.FromVisual(this._host);