1 type derived from PresentationSource
PresentationCore (1)
System\Windows\InterOp\HwndSource.cs (1)
35public 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)
267foreach (PresentationSource source in PresentationSource.CriticalCurrentSources) 273PresentationSource source = (PresentationSource)state;
MS\Internal\Interop\TipTsfHelper.cs (1)
195return PresentationSource.CriticalFromVisual(focusedObject) as HwndSource;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (7)
36public static Point ClientToRoot(Point point, PresentationSource presentationSource) 42public static Point TryClientToRoot(Point point, PresentationSource presentationSource, bool throwOnError, out bool success) 68public static Point RootToClient(Point point, PresentationSource presentationSource) 167public static Point ClientToScreen(Point pointClient, PresentationSource presentationSource) 189internal static Point ScreenToClient(Point pointScreen, PresentationSource presentationSource) 224internal static Rect ElementToRoot(Rect rectElement, Visual element, PresentationSource presentationSource) 248internal static Rect RootToClient(Rect rectRoot, PresentationSource presentationSource)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
50isConnected = PresentationSource.CriticalFromVisual(visual ) != null;
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
184PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (6)
187PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner); 210PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner); 504PresentationSource presentationSource = PresentationSource.CriticalFromVisual(_owner);
System\Windows\Diagnostics\VisualDiagnostics.cs (2)
150s_ActiveHwndSource = PresentationSource.FromDependencyObject(args.Parent) as System.Windows.Interop.HwndSource; 326(s_ActiveHwndSource != PresentationSource.FromDependencyObject(d));
System\Windows\DragDrop.cs (1)
1280private Point GetClientPointFromScreenPoint(long dragPoint, PresentationSource source)
System\Windows\Input\AccessKeyManager.cs (6)
369(scope is PresentationSource) && (Keyboard.Modifiers & ModifierKeys.Alt) != ModifierKeys.Alt) 452private PresentationSource GetSourceForElement(IInputElement element) 454PresentationSource source = null; 466source = PresentationSource.CriticalFromVisual(containingVisual); 475private PresentationSource GetActiveSource() 484private PresentationSource CriticalGetActiveSource()
System\Windows\Input\Command\CommandDevice.cs (1)
47public override PresentationSource ActiveSource
System\Windows\Input\FocusManager.cs (2)
154if (PresentationSource.CriticalFromVisual(focusScope) != PresentationSource.CriticalFromVisual(focusedElement))
System\Windows\Input\InputDevice.cs (1)
34public abstract PresentationSource ActiveSource { get; }
System\Windows\Input\InputElement.cs (2)
275HwndSource sourceFrom = PresentationSource.CriticalFromVisual(rootFrom) as HwndSource; 276HwndSource sourceTo = PresentationSource.CriticalFromVisual(rootTo) as HwndSource;
System\Windows\Input\InputManager.cs (2)
334public void PushMenuMode(PresentationSource menuSite) 355public void PopMenuMode(PresentationSource menuSite)
System\Windows\Input\InputMethod.cs (2)
1616PresentationSource source = PresentationSource.CriticalFromVisual(containingVisual);
System\Windows\Input\InputReport.cs (3)
40protected InputReport(PresentationSource inputSource, InputType type, InputMode mode, int timestamp) 55public PresentationSource InputSource => _inputSource; 108private readonly PresentationSource _inputSource;
System\Windows\Input\Keyboard.cs (2)
425PresentationSource presentationSource = PresentationSource.CriticalFromVisual(uie);
System\Windows\Input\KeyboardDevice.cs (6)
90public override PresentationSource ActiveSource => _activeSource; 172PresentationSource source = PresentationSource.CriticalFromVisual(containingVisual); 600PresentationSource presentationSource = null; 604presentationSource = PresentationSource.CriticalFromVisual(visualContainer); 1038private PresentationSource _activeSource;
System\Windows\Input\KeyEventArgs.cs (4)
34public KeyEventArgs(KeyboardDevice keyboard, PresentationSource inputSource, int timestamp, Key key) : base(keyboard, timestamp) 53public PresentationSource InputSource 198internal PresentationSource UnsafeInputSource 222private PresentationSource _inputSource;
System\Windows\Input\ManipulationDevice.cs (3)
36_activeSource = PresentationSource.CriticalFromVisual(element); 60public override PresentationSource ActiveSource 518private PresentationSource _activeSource;
System\Windows\Input\ManipulationLogic.cs (2)
581PresentationSource presentationSource = PresentationSource.CriticalFromVisual((Visual)newContainer);
System\Windows\Input\Mouse.cs (2)
477PresentationSource inputSource = PresentationSource.FromDependencyObject(InputElement.GetContainingVisual(relativeTo as DependencyObject));
System\Windows\Input\MouseDevice.cs (19)
130PresentationSource activeSource = CriticalActiveSource; 157PresentationSource activeSource = CriticalActiveSource; 178protected Point GetClientPosition(PresentationSource presentationSource) 210public override PresentationSource ActiveSource => _inputSource; 215internal PresentationSource CriticalActiveSource => _inputSource; 366PresentationSource captureSource = PresentationSource.CriticalFromVisual(containingVisual); 564PresentationSource relativePresentationSource = null; 573relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 807PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual); 893PresentationSource activeSource = CriticalActiveSource; 2054internal static IInputElement GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource) 2063internal static IInputElement GlobalHitTest(Point ptClient, PresentationSource inputSource) 2071private static void GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit) 2109internal static IInputElement LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource) 2118internal static IInputElement LocalHitTest(Point ptClient, PresentationSource inputSource) 2125private static void LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit) 2244private PresentationSource _inputSource;
System\Windows\Input\RawAppCommandInputReport.cs (1)
50PresentationSource inputSource,
System\Windows\Input\RawKeyboardInputReport.cs (1)
55PresentationSource inputSource,
System\Windows\Input\RawMouseInputReport.cs (1)
54PresentationSource inputSource,
System\Windows\Input\RawTextInputReport.cs (1)
46PresentationSource inputSource,
System\Windows\Input\RawUIStateInputReport.cs (1)
38PresentationSource inputSource,
System\Windows\Input\Stylus\Common\RawStylusInputReport.cs (2)
181PresentationSource inputSource, 237PresentationSource inputSource,
System\Windows\Input\Stylus\Common\RawStylusSystemGestureInputReport.cs (2)
92PresentationSource inputSource, 145PresentationSource inputSource,
System\Windows\Input\Stylus\Common\StylusDevice.cs (3)
88public override PresentationSource ActiveSource 333internal static IInputElement LocalHitTest(PresentationSource inputSource, Point pt) 338internal static IInputElement GlobalHitTest(PresentationSource inputSource, Point pt)
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (2)
102internal abstract PresentationSource ActiveSource { get; } 113internal abstract PresentationSource CriticalActiveSource { get; }
System\Windows\Input\Stylus\Common\StylusLogic.cs (5)
409protected Matrix GetAndCacheTransformToDeviceMatrix(PresentationSource source) 434internal abstract Point DeviceUnitsFromMeasureUnits(PresentationSource source, Point measurePoint); 441internal abstract Point MeasureUnitsFromDeviceUnits(PresentationSource source, Point measurePoint); 698PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual);
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (2)
528PresentationSource.AddSourceChangedHandler(_element, _sourceChangedEventHandler); // has a security linkdemand 559PresentationSource.RemoveSourceChangedHandler(_element, _sourceChangedEventHandler);
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (3)
127PresentationSource relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 142internal void ChangeActiveSource(PresentationSource activeSource)
System\Windows\Input\Stylus\Common\TabletDevice.cs (1)
64public override PresentationSource ActiveSource
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (1)
104internal abstract PresentationSource ActiveSource { get; }
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (5)
126internal Dictionary<PresentationSource, PointerStylusPlugInManager> PlugInManagers 130} = new Dictionary<PresentationSource, PointerStylusPlugInManager>(); 486internal override Point DeviceUnitsFromMeasureUnits(PresentationSource source, Point measurePoint) 502internal override Point MeasureUnitsFromDeviceUnits(PresentationSource source, Point devicePoint) 1255internal PointerStylusPlugInManager GetManagerForSource(PresentationSource source)
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (9)
78private PresentationSource _inputSource; 190internal override PresentationSource ActiveSource => _inputSource; 338internal override PresentationSource CriticalActiveSource => _inputSource; 718PresentationSource relativePresentationSource = null; 726relativePresentationSource = PresentationSource.CriticalFromVisual(containingVisual); 791internal void Update(HwndPointerInputProvider provider, PresentationSource inputSource, 903internal IInputElement FindTarget(PresentationSource inputSource, Point position) 1036PresentationSource source = PresentationSource.CriticalFromVisual(uiElement as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (2)
68PresentationSource presentationSource = PresentationSource.CriticalFromVisual(element as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (5)
36internal PointerStylusPlugInManager(PresentationSource source) 513PresentationSource source; 547source = PresentationSource.CriticalFromVisual(_activeMousePlugInCollection.Element as Visual); 592source = PresentationSource.CriticalFromVisual(directlyOverVisual); 659internal PresentationSource _inputSource;
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
195internal override PresentationSource ActiveSource
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
36internal PenContexts(WispLogic stylusLogic, PresentationSource inputSource)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (15)
91PresentationSource inputSource) 137PresentationSource inputSource) 1266PresentationSource mouseSource = _inputManager.PrimaryMouseDevice.CriticalActiveSource; 1746PresentationSource mouseInputSource = stylusDevice.GetMousePresentationSource(); 1814PresentationSource source; 1848source = PresentationSource.CriticalFromVisual(_activeMousePlugInCollection.Element as Visual); 1892source = PresentationSource.CriticalFromVisual(directlyOverVisual); 2826PresentationSource mouseInputSource = stylusDevice.GetMousePresentationSource(); 2923private static bool InWindowClientRect(Point ptClient, PresentationSource inputSource) 3127internal void RegisterHwndForInput(InputManager inputManager, PresentationSource inputSource) 3221internal PenContexts GetPenContextsFromHwnd(PresentationSource presentationSource) 3269internal PenContext GetStylusPenContextForHwnd(PresentationSource presentationSource, int tabletDeviceId) 3576internal Matrix GetTabletToViewTransform(PresentationSource source, TabletDevice tabletDevice) 3593internal override Point DeviceUnitsFromMeasureUnits(PresentationSource source, Point measurePoint) 3606internal override Point MeasureUnitsFromDeviceUnits(PresentationSource source, Point measurePoint)
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (21)
138internal override PresentationSource ActiveSource => _inputSource; 143internal override PresentationSource CriticalActiveSource => _inputSource; 591PresentationSource 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(); 1706internal PresentationSource GetMousePresentationSource() 1711PresentationSource mouseInputSource = null; 1722mouseInputSource = PresentationSource.CriticalFromVisual(mouseCapturedVisual); 1909PresentationSource activeSource = CriticalActiveSource; 1969private PresentationSource _inputSource;
System\Windows\Input\Stylus\Wisp\WispStylusPlugInCollection.cs (2)
78PresentationSource presentationSource = PresentationSource.CriticalFromVisual(element as Visual);
System\Windows\Input\Stylus\Wisp\WispTabletDevice.cs (1)
154internal override PresentationSource ActiveSource
System\Windows\Input\TouchDevice.cs (7)
121public sealed override PresentationSource ActiveSource 129protected void SetActiveSource(PresentationSource activeSource) 273private static IInputElement GlobalHitTest(Point pt, PresentationSource inputSource) 278private static IInputElement LocalHitTest(Point pt, PresentationSource inputSource) 581PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual); 1323private PresentationSource _activeSource;
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\HwndMouseInputProvider.cs (2)
218HwndSource inputSource = PresentationSource.FromDependencyObject(containingVisual) as HwndSource; 1240PresentationSource source = _source;
System\Windows\InterOp\HwndSource.cs (4)
683foreach (PresentationSource source in PresentationSource.CriticalCurrentSources) 2083HwndSource mnemonicScope = (focusObject == null ? null : PresentationSource.CriticalFromVisual(focusObject) as HwndSource); 2391PresentationSource.CriticalFromVisual((DependencyObject)focusElement) != this)
System\Windows\Media\Visual.cs (4)
4741PresentationSource inputSource = PresentationSource.FromVisual(this); 4770PresentationSource inputSource = PresentationSource.FromVisual(this);
System\Windows\PresentationSource.cs (29)
90public static PresentationSource FromVisual(Visual visual) 104public static PresentationSource FromDependencyObject(DependencyObject dependencyObject) 429PresentationSource oldSource = null; 439oldSource = (PresentationSource)oldRoot.GetValue(RootSourceProperty); 484PresentationSource testSource = (PresentationSource)element.GetValue(CachedSourceProperty); 554internal static PresentationSource CriticalFromVisual(DependencyObject v) 564internal static PresentationSource CriticalFromVisual(DependencyObject v, bool enable2DTo3DTransition) 568PresentationSource source = FindSource(v, enable2DTo3DTransition); 585PresentationSource ps = (PresentationSource)arg; 604PresentationSource baseSource = CriticalFromVisual(visuals[0]); 609PresentationSource currentSource = CriticalFromVisual(visuals[i]); 658element.SetValue(CachedSourceProperty, PresentationSource.FindSource(element)); 673private static PresentationSource FindSource(DependencyObject o) 683private static PresentationSource FindSource(DependencyObject o, bool enable2DTo3DTransition) 685PresentationSource source = null; 694source = (PresentationSource)v.GetValue(RootSourceProperty); 705PresentationSource realSource = FindSource(doTarget); 706PresentationSource cachedSource = (PresentationSource)doTarget.GetValue(CachedSourceProperty); 750= DependencyProperty.RegisterAttached("RootSource", typeof(PresentationSource), typeof(PresentationSource), 751new PropertyMetadata((PresentationSource)null)); 758= DependencyProperty.RegisterAttached("CachedSource", typeof(PresentationSource), typeof(PresentationSource), 759new PropertyMetadata((PresentationSource)null)); 762private static readonly DependencyProperty GetsSourceChangedEventProperty = DependencyProperty.RegisterAttached("IsBeingWatched", typeof(bool), typeof(PresentationSource), new PropertyMetadata((bool)false)); 767private 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)
1590PresentationSource.OnVisualAncestorChanged(uie, e); 3877PresentationSource presentationSource = PresentationSource.CriticalFromVisual(this);
System\Windows\UIElement3D.cs (3)
292PresentationSource.OnVisualAncestorChanged(uie3D, e); 1098PresentationSource presentationSource = PresentationSource.CriticalFromVisual(this);
PresentationFramework (100)
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
177if (PresentationSource.FromVisual(annotatedElement) == null)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
285HwndSource hwndSource = PresentationSource.CriticalFromVisual(findToolBar) as HwndSource;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (2)
99PresentationSource source = PresentationSource.CriticalFromVisual(relativeTo);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
50isConnected = PresentationSource.CriticalFromVisual(visual ) != null;
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
144HwndSource hwndSource = PresentationSource.CriticalFromVisual(uiScope) as HwndSource; 165HwndSource hwndSource = PresentationSource.CriticalFromVisual(uiScope) as HwndSource;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
64PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope); 106PresentationSource presentationSource = PresentationSource.CriticalFromVisual(textView.RenderScope);
System\Windows\Controls\ComboBox.cs (1)
1943HwndSource source = PresentationSource.CriticalFromVisual(itemsHost) as HwndSource;
System\Windows\Controls\Menu.cs (5)
251System.Windows.Interop.HwndSource source = PresentationSource.CriticalFromVisual(this) as System.Windows.Interop.HwndSource; 345PresentationSource source = sender as PresentationSource; 346PresentationSource mySource = null; 348mySource = PresentationSource.CriticalFromVisual(this);
System\Windows\Controls\PopupControlService.cs (11)
73PresentationSource source = PresentationSource.CriticalFromVisual((DependencyObject)directlyOver); 849PresentationSource presentationSource = (owner != null) ? PresentationSource.CriticalFromVisual(owner) : null; 926PresentationSource presentationSource = (owner != null) ? PresentationSource.CriticalFromVisual(owner) : null; 1070return PresentationSource.CriticalFromVisual(uie) == null; 1361internal ConvexHull(PresentationSource source, List<NativeMethods.RECT> rects) 1593PresentationSource mouseSource = Mouse.PrimaryDevice.CriticalActiveSource; 1645internal bool ContainsPoint(PresentationSource source, int x, int y) 1727PresentationSource _source;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
112if (!PresentationSource.UnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
System\Windows\Controls\Primitives\MenuBase.cs (3)
899_pushedMenuMode = PresentationSource.CriticalFromVisual(this); 911PresentationSource pushedMenuMode = _pushedMenuMode; 938private PresentationSource _pushedMenuMode;
System\Windows\Controls\Primitives\Popup.cs (2)
3424private static PresentationSource GetPresentationSource(Visual visual) 3426return (visual != null ? PresentationSource.CriticalFromVisual(visual) : null);
System\Windows\Controls\ScrollViewer.cs (1)
1657if (!PresentationSource.UnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
System\Windows\Controls\TextAdaptor.cs (4)
403PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual); 443PresentationSource presentationSource = PresentationSource.CriticalFromVisual(visual);
System\Windows\Controls\WebBrowser.cs (2)
741PresentationSource pSource = PresentationSource.CriticalFromVisual(this);
System\windows\Documents\CaretElement.cs (4)
974PresentationSource source = PresentationSource.CriticalFromVisual(this); 1063PresentationSource source = null; 1064source = PresentationSource.CriticalFromVisual(this);
System\Windows\Documents\ImmComposition.cs (5)
81HwndSource source = PresentationSource.CriticalFromVisual(scope) as HwndSource; 116PresentationSource.RemoveSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged)); 139PresentationSource.RemoveSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged)); 147PresentationSource.AddSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged)); 286PresentationSource.RemoveSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged));
System\windows\Documents\TextEditorContextMenu.cs (2)
300PresentationSource source = PresentationSource.CriticalFromVisual(This.UiScope);
System\windows\Documents\TextEditorDragDrop.cs (2)
669PresentationSource source = null; 671source = PresentationSource.CriticalFromVisual(_textEditor.UiScope);
System\windows\Documents\TextEditorTyping.cs (3)
498PresentationSource.AddSourceChangedHandler(element, OnSourceChanged); 508PresentationSource.RemoveSourceChangedHandler(element, OnSourceChanged); 1622IWin32Window win32Window = PresentationSource.CriticalFromVisual(This.UiScope) as IWin32Window;
System\Windows\Documents\TextStore.cs (10)
942PresentationSource source; 1021PresentationSource source; 1146PresentationSource source; 2617private void GetVisualInfo(out PresentationSource source, out IWin32Window win32Window, out ITextView view) 2619source = PresentationSource.CriticalFromVisual(RenderScope); 2631private static UnsafeNativeMethods.RECT TransformRootRectToScreenCoordinates(Point milPointTopLeft, Point milPointBottomRight, IWin32Window win32Window, PresentationSource source) 2851PresentationSource source = null; 2853source = PresentationSource.CriticalFromVisual((Visual)RenderScope); 3314win32Window = PresentationSource.CriticalFromVisual(RenderScope) as IWin32Window; 3318win32Window = PresentationSource.FromVisual(RenderScope) as IWin32Window;
System\Windows\FrameworkContentElement.cs (1)
714if (dp != null && dp.OwnerType == typeof(PresentationSource) && dp.Name == "RootSource")
System\Windows\FrameworkElement.cs (1)
2083if (dp != null && dp.OwnerType == typeof(PresentationSource) && dp.Name == "RootSource")
System\Windows\Generated\FrameworkContentElement.cs (1)
433PresentationSource.OnAncestorChanged(this);
System\Windows\Input\KeyboardNavigation.cs (6)
159PresentationSource source = PresentationSource.CriticalFromVisual(d); 1106IKeyboardInputSink inputSink = PresentationSource.CriticalFromVisual(visual) as IKeyboardInputSink; 3281PresentationSource source = null; 3286source = (eventSourceVisual != null) ? PresentationSource.CriticalFromVisual(eventSourceVisual) : null; 3399PresentationSource source;
System\Windows\Interop\HwndHost.cs (14)
342PresentationSource source = null; 346source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */); 393private NativeMethods.RECT CalculateAssignedRC(PresentationSource source) 505PresentationSource.RemoveSourceChangedHandler(this, new SourceChangedEventHandler(OnSourceChanged)); 568PresentationSource source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */); 834PresentationSource.AddSourceChangedHandler(this, new SourceChangedEventHandler(OnSourceChanged)); 863IKeyboardInputSink source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */) as IKeyboardInputSink; 932PresentationSource source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */); 945PresentationSource goingThrough3DSource = PresentationSource.CriticalFromVisual(this, true /* enable2DTo3DTransition */); 1070PresentationSource source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
582case 486: t = () => typeof(PresentationSource); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7907typeof(System.Windows.PresentationSource),
System\Windows\Markup\KnownTypes.cs (1)
6040case KnownElements.PresentationSource: t = typeof(System.Windows.PresentationSource); break;
System\Windows\SystemResources.cs (4)
1254PresentationSource source = (PresentationSource)argsArray[0]; 1329foreach (PresentationSource source in PresentationSource.CriticalCurrentSources)
System\Windows\VisualStateManager.cs (2)
317controlInTree = (PresentationSource.CriticalFromVisual(control) != null); 325stateGroupsRootInTree = (PresentationSource.CriticalFromVisual(stateGroupsRoot) != null);
System\Windows\Window.cs (1)
7056if (!PresentationSource.UnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\KeyTipService.cs (2)
804PresentationSource targetSource = RibbonHelper.GetPresentationSourceFromVisual(_currentGlobalScope as Visual); 1263PresentationSource targetSource = RibbonHelper.GetPresentationSourceFromVisual(_currentGlobalScope as Visual);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (5)
133PresentationSource.AddSourceChangedHandler(this, new SourceChangedEventHandler(OnSourceChangedHandler)); 2367PresentationSource targetSource = sender as PresentationSource; 2379PresentationSource targetSource = sender as PresentationSource;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1048PresentationSource mouseSource = Mouse.PrimaryDevice.ActiveSource; 2522public static PresentationSource GetPresentationSourceFromVisual(Visual visual) 2530return PresentationSource.CriticalFromVisual(visual); 2928hwndSource = PresentationSource.FromVisual(targetVisual) as HwndSource;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
293CompositionTarget compositionTarget = PresentationSource.FromVisual(rw).CompositionTarget;
WindowsFormsIntegration (4)
System\Windows\Integration\ApplicationInterop.cs (2)
420return (PresentationSource.FromVisual(x) != null) ? (PresentationSource.FromVisual(x)).RootVisual : null;
System\Windows\Integration\WindowsFormsHost.cs (2)
1008PresentationSource presentationSource = PresentationSource.FromVisual(this._host);