src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (7)
37public static Point ClientToRoot(Point point, PresentationSource presentationSource)
43public static Point TryClientToRoot(Point point, PresentationSource presentationSource, bool throwOnError, out bool success)
69public static Point RootToClient(Point point, PresentationSource presentationSource)
168public static Point ClientToScreen(Point pointClient, PresentationSource presentationSource)
190internal static Point ScreenToClient(Point pointScreen, PresentationSource presentationSource)
225internal static Rect ElementToRoot(Rect rectElement, Visual element, PresentationSource presentationSource)
249internal static Rect RootToClient(Rect rectRoot, PresentationSource presentationSource)
System\Windows\Input\MouseDevice.cs (21)
131PresentationSource activeSource = CriticalActiveSource;
158PresentationSource activeSource = CriticalActiveSource;
179protected Point GetClientPosition(PresentationSource presentationSource)
211public override PresentationSource ActiveSource
226internal PresentationSource CriticalActiveSource
389PresentationSource captureSource = PresentationSource.CriticalFromVisual(containingVisual);
587PresentationSource relativePresentationSource = null;
596relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual);
830PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual);
916PresentationSource activeSource = CriticalActiveSource;
1448_inputSource = new SecurityCriticalDataClass<PresentationSource>(rawMouseInputReport.InputSource);
1456_inputSource = new SecurityCriticalDataClass<PresentationSource>(rawMouseInputReport.InputSource);
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 SecurityCriticalDataClass<PresentationSource> _inputSource;
System\Windows\PresentationSource.cs (29)
91public static PresentationSource FromVisual(Visual visual)
105public static PresentationSource FromDependencyObject(DependencyObject dependencyObject)
431PresentationSource oldSource = null;
441oldSource = (PresentationSource)oldRoot.GetValue(RootSourceProperty);
486PresentationSource testSource = (PresentationSource)element.GetValue(CachedSourceProperty);
557internal static PresentationSource CriticalFromVisual(DependencyObject v)
568internal static PresentationSource CriticalFromVisual(DependencyObject v, bool enable2DTo3DTransition)
572PresentationSource source = FindSource(v, enable2DTo3DTransition);
589PresentationSource ps = (PresentationSource)arg;
609PresentationSource baseSource = CriticalFromVisual(visuals[0]);
614PresentationSource currentSource = CriticalFromVisual(visuals[i]);
663element.SetValue(CachedSourceProperty, PresentationSource.FindSource(element));
678private static PresentationSource FindSource(DependencyObject o)
688private static PresentationSource FindSource(DependencyObject o, bool enable2DTo3DTransition)
690PresentationSource source = null;
699source = (PresentationSource)v.GetValue(RootSourceProperty);
710PresentationSource realSource = FindSource(doTarget);
711PresentationSource cachedSource = (PresentationSource)doTarget.GetValue(CachedSourceProperty);
755= DependencyProperty.RegisterAttached("RootSource", typeof(PresentationSource), typeof(PresentationSource),
756new PropertyMetadata((PresentationSource)null));
763= DependencyProperty.RegisterAttached("CachedSource", typeof(PresentationSource), typeof(PresentationSource),
764new PropertyMetadata((PresentationSource)null));
767private static readonly DependencyProperty GetsSourceChangedEventProperty = DependencyProperty.RegisterAttached("IsBeingWatched", typeof(bool), typeof(PresentationSource), new PropertyMetadata((bool)false));
772private static readonly RoutedEvent SourceChangedEvent = EventManager.RegisterRoutedEvent("SourceChanged", RoutingStrategy.Direct, typeof(SourceChangedEventHandler), typeof(PresentationSource));