1 type derived from PresentationSource
PresentationCore (1)
System\Windows\InterOp\HwndSource.cs (1)
23public class HwndSource : PresentationSource, IDisposable, IWin32Window, IKeyboardInputSink
352 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 (232)
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)
1602PresentationSource 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)
81public override PresentationSource ActiveSource => _activeSource; 163PresentationSource source = PresentationSource.CriticalFromVisual(containingVisual); 591PresentationSource presentationSource = null; 595presentationSource = PresentationSource.CriticalFromVisual(visualContainer); 1029private 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 509private PresentationSource _activeSource;
System\Windows\Input\ManipulationLogic.cs (2)
574PresentationSource 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)
121PresentationSource activeSource = CriticalActiveSource; 148PresentationSource activeSource = CriticalActiveSource; 169protected Point GetClientPosition(PresentationSource presentationSource) 201public override PresentationSource ActiveSource => _inputSource; 206internal PresentationSource CriticalActiveSource => _inputSource; 357PresentationSource captureSource = PresentationSource.CriticalFromVisual(containingVisual); 555PresentationSource relativePresentationSource = null; 564relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 798PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual); 884PresentationSource activeSource = CriticalActiveSource; 2045internal static IInputElement GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource) 2054internal static IInputElement GlobalHitTest(Point ptClient, PresentationSource inputSource) 2062private static void GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit) 2100internal static IInputElement LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource) 2109internal static IInputElement LocalHitTest(Point ptClient, PresentationSource inputSource) 2116private static void LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit) 2235private 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)
399protected Matrix GetAndCacheTransformToDeviceMatrix(PresentationSource source) 424internal abstract Point DeviceUnitsFromMeasureUnits(PresentationSource source, Point measurePoint); 431internal abstract Point MeasureUnitsFromDeviceUnits(PresentationSource source, Point measurePoint); 688PresentationSource 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>(); 469internal override Point DeviceUnitsFromMeasureUnits(PresentationSource source, Point measurePoint) 485internal override Point MeasureUnitsFromDeviceUnits(PresentationSource source, Point devicePoint) 1238internal 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; 710PresentationSource relativePresentationSource = null; 718relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 783internal void Update(HwndPointerInputProvider provider, PresentationSource inputSource, 895internal IInputElement FindTarget(PresentationSource inputSource, Point position) 1028PresentationSource 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) 1257PresentationSource mouseSource = _inputManager.PrimaryMouseDevice.CriticalActiveSource; 1737PresentationSource mouseInputSource = stylusDevice.GetMousePresentationSource(); 1805PresentationSource source; 1839source = PresentationSource.CriticalFromVisual(_activeMousePlugInCollection.Element as Visual); 1883source = PresentationSource.CriticalFromVisual(directlyOverVisual); 2817PresentationSource mouseInputSource = stylusDevice.GetMousePresentationSource(); 2914private static bool InWindowClientRect(Point ptClient, PresentationSource inputSource) 3118internal void RegisterHwndForInput(InputManager inputManager, PresentationSource inputSource) 3212internal PenContexts GetPenContextsFromHwnd(PresentationSource presentationSource) 3260internal PenContext GetStylusPenContextForHwnd(PresentationSource presentationSource, int tabletDeviceId) 3567internal Matrix GetTabletToViewTransform(PresentationSource source, TabletDevice tabletDevice) 3584internal override Point DeviceUnitsFromMeasureUnits(PresentationSource source, Point measurePoint) 3597internal 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; 588PresentationSource source = PresentationSource.CriticalFromVisual(uiElement as Visual); 964internal IInputElement FindTarget(PresentationSource inputSource, Point position) 1163PresentationSource relativePresentationSource = null; 1171relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 1283private GeneralTransform GetTabletToElementTransform(PresentationSource source, IInputElement relativeTo) 1405PresentationSource inputSource = DetermineValidSource(report.InputSource, _eventStylusPoints, report.PenContext.Contexts); 1496private PresentationSource DetermineValidSource(PresentationSource inputSource, StylusPointCollection stylusPoints, PenContexts penContextsOfPoints) 1504PresentationSource newSource = null; 1510PresentationSource capturedSource = PresentationSource.CriticalFromVisual(containingVisual); 1623PresentationSource inputSource = DetermineValidSource(report.InputSource, _eventStylusPoints, report.PenContext.Contexts); 1660PresentationSource mouseInputSource = GetMousePresentationSource(); 1703internal PresentationSource GetMousePresentationSource() 1708PresentationSource mouseInputSource = null; 1719mouseInputSource = PresentationSource.CriticalFromVisual(mouseCapturedVisual); 1906PresentationSource activeSource = CriticalActiveSource; 1966private 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); 1311private 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; 1236PresentationSource source = _source;
System\Windows\InterOp\HwndSource.cs (4)
671foreach (PresentationSource source in PresentationSource.CriticalCurrentSources) 2060HwndSource mnemonicScope = (focusObject == null ? null : PresentationSource.CriticalFromVisual(focusObject) as HwndSource); 2368PresentationSource.CriticalFromVisual((DependencyObject)focusElement) != this)
System\Windows\Media\Visual.cs (4)
4725PresentationSource inputSource = PresentationSource.FromVisual(this); 4754PresentationSource inputSource = PresentationSource.FromVisual(this);
System\Windows\PresentationSource.cs (29)
80public static PresentationSource FromVisual(Visual visual) 94public static PresentationSource FromDependencyObject(DependencyObject dependencyObject) 419PresentationSource oldSource = null; 429oldSource = (PresentationSource)oldRoot.GetValue(RootSourceProperty); 474PresentationSource testSource = (PresentationSource)element.GetValue(CachedSourceProperty); 544internal static PresentationSource CriticalFromVisual(DependencyObject v) 554internal static PresentationSource CriticalFromVisual(DependencyObject v, bool enable2DTo3DTransition) 558PresentationSource source = FindSource(v, enable2DTo3DTransition); 575PresentationSource ps = (PresentationSource)arg; 594PresentationSource baseSource = CriticalFromVisual(visuals[0]); 599PresentationSource currentSource = CriticalFromVisual(visuals[i]); 648element.SetValue(CachedSourceProperty, PresentationSource.FindSource(element)); 663private static PresentationSource FindSource(DependencyObject o) 673private static PresentationSource FindSource(DependencyObject o, bool enable2DTo3DTransition) 675PresentationSource source = null; 684source = (PresentationSource)v.GetValue(RootSourceProperty); 695PresentationSource realSource = FindSource(doTarget); 696PresentationSource cachedSource = (PresentationSource)doTarget.GetValue(CachedSourceProperty); 740= DependencyProperty.RegisterAttached("RootSource", typeof(PresentationSource), typeof(PresentationSource), 741new PropertyMetadata((PresentationSource)null)); 748= DependencyProperty.RegisterAttached("CachedSource", typeof(PresentationSource), typeof(PresentationSource), 749new PropertyMetadata((PresentationSource)null)); 752private static readonly DependencyProperty GetsSourceChangedEventProperty = DependencyProperty.RegisterAttached("IsBeingWatched", typeof(bool), typeof(PresentationSource), new PropertyMetadata((bool)false)); 757private 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)
1585PresentationSource.OnVisualAncestorChanged(uie, e); 3872PresentationSource presentationSource = PresentationSource.CriticalFromVisual(this);
System\Windows\UIElement3D.cs (3)
277PresentationSource.OnVisualAncestorChanged(uie3D, e); 1083PresentationSource presentationSource = PresentationSource.CriticalFromVisual(this);
PresentationFramework (100)
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
173if (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)
95PresentationSource 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)
1933HwndSource 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); 839PresentationSource presentationSource = (owner != null) ? PresentationSource.CriticalFromVisual(owner) : null; 916PresentationSource presentationSource = (owner != null) ? PresentationSource.CriticalFromVisual(owner) : null; 1060return PresentationSource.CriticalFromVisual(uie) == null; 1351internal ConvexHull(PresentationSource source, List<NativeMethods.RECT> rects) 1583PresentationSource mouseSource = Mouse.PrimaryDevice.CriticalActiveSource; 1635internal bool ContainsPoint(PresentationSource source, int x, int y) 1717PresentationSource _source;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
108if (!PresentationSource.UnderSamePresentationSource(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)
3417private static PresentationSource GetPresentationSource(Visual visual) 3419return (visual != null ? PresentationSource.CriticalFromVisual(visual) : null);
System\Windows\Controls\ScrollViewer.cs (1)
1649if (!PresentationSource.UnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
System\Windows\Controls\TextAdaptor.cs (4)
400PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual); 440PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual);
System\Windows\Controls\WebBrowser.cs (2)
731PresentationSource pSource = PresentationSource.CriticalFromVisual(this);
System\windows\Documents\CaretElement.cs (4)
971PresentationSource source = PresentationSource.CriticalFromVisual(this); 1060PresentationSource source = null; 1061source = PresentationSource.CriticalFromVisual(this);
System\Windows\Documents\ImmComposition.cs (5)
73HwndSource source = PresentationSource.CriticalFromVisual(scope) as HwndSource; 108PresentationSource.RemoveSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged)); 131PresentationSource.RemoveSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged)); 139PresentationSource.AddSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged)); 278PresentationSource.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)
489PresentationSource.AddSourceChangedHandler(element, OnSourceChanged); 499PresentationSource.RemoveSourceChangedHandler(element, OnSourceChanged); 1613IWin32Window win32Window = PresentationSource.CriticalFromVisual(This.UiScope) as IWin32Window;
System\Windows\Documents\TextStore.cs (10)
931PresentationSource source; 1010PresentationSource source; 1135PresentationSource source; 2606private void GetVisualInfo(out PresentationSource source, out IWin32Window win32Window, out ITextView view) 2608source = PresentationSource.CriticalFromVisual(RenderScope); 2620private static UnsafeNativeMethods.RECT TransformRootRectToScreenCoordinates(Point milPointTopLeft, Point milPointBottomRight, IWin32Window win32Window, PresentationSource source) 2840PresentationSource source = null; 2842source = PresentationSource.CriticalFromVisual((Visual)RenderScope); 3303win32Window = PresentationSource.CriticalFromVisual(RenderScope) as IWin32Window; 3307win32Window = PresentationSource.FromVisual(RenderScope) as IWin32Window;
System\Windows\FrameworkContentElement.cs (1)
702if (dp != null && dp.OwnerType == typeof(PresentationSource) && dp.Name == "RootSource")
System\Windows\FrameworkElement.cs (1)
2072if (dp != null && dp.OwnerType == typeof(PresentationSource) && dp.Name == "RootSource")
System\Windows\Generated\FrameworkContentElement.cs (1)
427PresentationSource.OnAncestorChanged(this);
System\Windows\Input\KeyboardNavigation.cs (6)
149PresentationSource source = PresentationSource.CriticalFromVisual(d); 1096IKeyboardInputSink inputSink = PresentationSource.CriticalFromVisual(visual) as IKeyboardInputSink; 3271PresentationSource source = null; 3276source = (eventSourceVisual != null) ? PresentationSource.CriticalFromVisual(eventSourceVisual) : null; 3389PresentationSource source;
System\Windows\Interop\HwndHost.cs (14)
340PresentationSource source = null; 344source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */); 391private NativeMethods.RECT CalculateAssignedRC(PresentationSource source) 503PresentationSource.RemoveSourceChangedHandler(this, new SourceChangedEventHandler(OnSourceChanged)); 566PresentationSource source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */); 832PresentationSource.AddSourceChangedHandler(this, new SourceChangedEventHandler(OnSourceChanged)); 861IKeyboardInputSink source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */) as IKeyboardInputSink; 930PresentationSource source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */); 943PresentationSource goingThrough3DSource = PresentationSource.CriticalFromVisual(this, true /* enable2DTo3DTransition */); 1068PresentationSource 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)
7905typeof(System.Windows.PresentationSource),
System\Windows\Markup\KnownTypes.cs (1)
6040case KnownElements.PresentationSource: t = typeof(System.Windows.PresentationSource); break;
System\Windows\SystemResources.cs (4)
1247PresentationSource source = (PresentationSource)argsArray[0]; 1322foreach (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)
7043if (!PresentationSource.UnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\KeyTipService.cs (2)
802PresentationSource targetSource = RibbonHelper.GetPresentationSourceFromVisual(_currentGlobalScope as Visual); 1261PresentationSource targetSource = RibbonHelper.GetPresentationSourceFromVisual(_currentGlobalScope as Visual);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (5)
130PresentationSource.AddSourceChangedHandler(this, new SourceChangedEventHandler(OnSourceChangedHandler)); 2364PresentationSource targetSource = sender as PresentationSource; 2376PresentationSource targetSource = sender as PresentationSource;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1043PresentationSource mouseSource = Mouse.PrimaryDevice.ActiveSource; 2517public static PresentationSource GetPresentationSourceFromVisual(Visual visual) 2525return PresentationSource.CriticalFromVisual(visual); 2923hwndSource = 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)
1006PresentationSource presentationSource = PresentationSource.FromVisual(this._host);