3 instantiations of HwndSource
PresentationFramework (2)
System\Windows\Controls\Primitives\Popup.cs (1)
3352HwndSource newWindow = new HwndSource(param);
System\Windows\Window.cs (1)
2545HwndSource source = new HwndSource(param);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
580_hwndSource = new HwndSource(HWSParam);
180 references to HwndSource
PresentationCore (111)
MS\Internal\Automation\ElementUtil.cs (2)
151HwndSource hwndSource = HwndSource.CriticalFromHwnd(hwnd);
MS\Internal\Interop\TipTsfHelper.cs (2)
189private static HwndSource GetHwndSource(DependencyObject focusedObject) 191return PresentationSource.CriticalFromVisual(focusedObject) as HwndSource;
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
132internal static InputPane GetForWindow(HwndSource source)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (5)
167HwndSource inputSource = presentationSource as HwndSource; 189HwndSource inputSource = presentationSource as HwndSource; 270internal static Rect ClientToScreen(Rect rectClient, HwndSource hwndSource)
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
182HwndSource hwndSource = presentationSource as HwndSource;
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (6)
184HwndSource hwndSource = presentationSource as HwndSource; 207HwndSource hwndSource = presentationSource as HwndSource; 501HwndSource hwndSource = presentationSource as HwndSource;
System\Windows\Diagnostics\VisualDiagnostics.cs (3)
34private static HwndSource s_ActiveHwndSource; 137HwndSource savedActiveHwndSource = s_ActiveHwndSource; 145s_ActiveHwndSource = PresentationSource.FromDependencyObject(args.Parent) as System.Windows.Interop.HwndSource;
System\Windows\DragDrop.cs (2)
1291HwndSource source; 1298source = HwndSource.FromHwnd(_windowHandle);
System\Windows\Input\AccessKeyManager.cs (2)
467return HwndSource.FromHwnd(hwnd); 476return HwndSource.CriticalFromHwnd(hwnd);
System\Windows\Input\InputElement.cs (4)
271HwndSource sourceFrom = PresentationSource.CriticalFromVisual(rootFrom) as HwndSource; 272HwndSource sourceTo = PresentationSource.CriticalFromVisual(rootTo) as HwndSource;
System\Windows\Input\MouseDevice.cs (4)
2069HwndSource source = inputSource as HwndSource; 2074HwndSource sourceHit = null ; 2088sourceHit = HwndSource.CriticalFromHwnd(hwndHit);
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
401var hwndSource = source as HwndSource;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
59Matrix matrix = (_inputSource as HwndSource)?.CompositionTarget?.TransformToDevice ?? Matrix.Identity;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (4)
16HwndSource hwndSource = inputSource as HwndSource; 536internal HwndSource InputSource => _inputSource; 540internal HwndSource _inputSource;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (13)
638HwndSource hwndSource = mouseInputReport.InputSource as HwndSource; 2919HwndSource source = inputSource as HwndSource; 2924HwndSource sourceHit = null; 2934sourceHit = HwndSource.CriticalFromHwnd(hwndHit); 3120HwndSource hwndSource = (HwndSource)inputSource; 3170internal void UnRegisterHwndForInput(HwndSource hwndSource) 3245HwndSource hwndSource = mouseInputReport.InputSource as HwndSource; 3511HwndSource sourceHit = HwndSource.CriticalFromHwnd(hwnd);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
1498HwndSource hwndSource = (HwndSource)inputSource; 1542HwndSource newHwndSource = HwndSource.CriticalFromHwnd(hwndHit);
System\Windows\InterOp\HwndAppCommandInputProvider.cs (2)
15internal HwndAppCommandInputProvider( HwndSource source ) 110private HwndSource _source;
System\Windows\InterOp\HwndKeyboardInputProvider.cs (15)
17internal HwndKeyboardInputProvider(HwndSource source) 211HwndSource._eatCharMessages = true; 212DispatcherOperation restoreCharMessages = Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(HwndSource.RestoreCharMessages), null); 228HwndSource._eatCharMessages = false; 267if(HwndSource._eatCharMessages) 350HwndSource hwndSource = PresentationSource.CriticalFromVisual(focusedDO) as HwndSource; 429HwndSource thisSource = _source; 476HwndSource hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as HwndSource; 499HwndSource hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as HwndSource; 737HwndSource hwndSource = HwndSource.CriticalFromHwnd(hwnd); 858private HwndSource _source;
System\Windows\InterOp\HwndMouseInputProvider.cs (11)
20internal HwndMouseInputProvider(HwndSource source) 214HwndSource inputSource = PresentationSource.FromDependencyObject(containingVisual) as HwndSource; 1023HwndSource hwndSource; 1046private bool HasCustomChrome(HwndSource hwndSource, ref NativeMethods.RECT rcClient) 1079private bool EnsureFrameworkAccessors(HwndSource hwndSource) 1121private Assembly GetPresentationFrameworkFromHwndSource(HwndSource hwndSource) 1176HwndSource hwndSource; 1180private bool IsOurWindowImpl(IntPtr hwnd, out HwndSource hwndSource) 1189hwndSource = HwndSource.CriticalFromHwnd(hwnd); 1455private HwndSource _source;
System\Windows\InterOp\HwndPanningFeedback.cs (2)
23public HwndPanningFeedback(HwndSource hwndSource) 130private HwndSource _hwndSource;
System\Windows\InterOp\HwndPointerInputProvider.cs (2)
28private readonly HwndSource _source; 67internal HwndPointerInputProvider(HwndSource source)
System\Windows\InterOp\HwndSource.cs (13)
659public static HwndSource FromHwnd(IntPtr hwnd) 664internal static HwndSource CriticalFromHwnd(IntPtr hwnd) 670HwndSource hwndSource = null; 673HwndSource test = source as HwndSource; 2060HwndSource mnemonicScope = (focusObject == null ? null : PresentationSource.CriticalFromVisual(focusObject) as HwndSource); 2682public WeakEventDispatcherShutdown(HwndSource source, Dispatcher that): base(source) 2690HwndSource source = this.Target as HwndSource; 2714public WeakEventPreprocessMessage(HwndSource source, bool addToFront): base(source) 2731HwndSource source = this.Target as HwndSource;
System\Windows\InterOp\HwndSourceKeyboardInputSite.cs (2)
11public HwndSourceKeyboardInputSite(HwndSource source, IKeyboardInputSink sink) 87private HwndSource _source;
System\Windows\InterOp\HwndSourceParameters.cs (1)
267get { return _acquireHwndFocusInMenuMode ?? HwndSource.DefaultAcquireHwndFocusInMenuMode; }
System\Windows\InterOp\HwndStylusInputProvider.cs (2)
29internal HwndStylusInputProvider(HwndSource source) 164private HwndSource _source;
System\Windows\InterOp\HwndTarget.cs (4)
869var hwndSource = HwndSource.FromHwnd(_hWnd); 910var hwndSource = HwndSource.FromHwnd(_hWnd);
PresentationFramework (62)
MS\Internal\Documents\DocumentViewerHelper.cs (2)
283HwndSource hwndSource = PresentationSource.CriticalFromVisual(findToolBar) as HwndSource;
System\Windows\Appearance\WindowBackdropManager.cs (4)
98var windowSource = HwndSource.FromHwnd(hwnd); 113var windowSource = HwndSource.FromHwnd(hwnd);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (4)
142HwndSource hwndSource = PresentationSource.CriticalFromVisual(uiScope) as HwndSource; 163HwndSource hwndSource = PresentationSource.CriticalFromVisual(uiScope) as HwndSource;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
67HwndSource hwndSource = presentationSource as HwndSource; 109HwndSource hwndSource = presentationSource as HwndSource;
System\Windows\Controls\ComboBox.cs (2)
1933HwndSource source = PresentationSource.CriticalFromVisual(itemsHost) as HwndSource;
System\Windows\Controls\Menu.cs (2)
241System.Windows.Interop.HwndSource source = PresentationSource.CriticalFromVisual(this) as System.Windows.Interop.HwndSource;
System\Windows\Controls\PopupControlService.cs (2)
1601System.Windows.Interop.HwndSource hwndSource = _source as System.Windows.Interop.HwndSource;
System\Windows\Controls\Primitives\MenuBase.cs (2)
612HwndSource hwndSourceWithFocus = hwndWithFocus != IntPtr.Zero ? HwndSource.CriticalFromHwnd(hwndWithFocus) : null;
System\Windows\Controls\Primitives\Popup.cs (16)
2982HwndSource targetWindow = PopupSecurityHelper.GetPresentationSource(rootVisual) as HwndSource; 2992private NativeMethods.POINT ClientToScreen(HwndSource hwnd, Point clientPt) 2995HwndSource parent = null; 2998parent = HwndSource.CriticalFromHwnd(ParentHandle); 3023HwndSource hwndSource = null; 3026hwndSource = PopupSecurityHelper.GetPresentationSource(targetVisual) as HwndSource; 3118HwndSource hwndSource = null; 3121hwndSource = PopupSecurityHelper.GetPresentationSource(targetVisual) as HwndSource; 3304HwndSource hwndSource = PopupSecurityHelper.GetPresentationSource(mainTreeVisual) as HwndSource; 3352HwndSource newWindow = new HwndSource(param); 3393private static IntPtr GetHandle(HwndSource hwnd) 3399private static IntPtr GetParentHandle(HwndSource hwnd) 3457HwndSource hwnd = _window; 3477private HwndSource _window;
System\Windows\Documents\ImmComposition.cs (10)
55internal ImmComposition(HwndSource source) 73HwndSource source = PresentationSource.CriticalFromVisual(scope) as HwndSource; 264HwndSource newSource = null; 265HwndSource oldSource = null; 267newSource = e.NewSource as HwndSource; 268oldSource = e.OldSource as HwndSource; 285private void UpdateSource(HwndSource oldSource, HwndSource newSource) 1911private HwndSource _source;
System\Windows\Input\KeyboardNavigation.cs (3)
1209HwndSource hwndSource = keyEventArgs.UnsafeInputSource as HwndSource; 3285source = HwndSource.CriticalFromHwnd(activeWindow);
System\Windows\Interop\HwndHost.cs (2)
933HwndSource hwndSource = source as HwndSource ;
System\Windows\Shell\WindowChromeWorker.cs (3)
40private HwndSource _hwndSource = null; 151_hwndSource = HwndSource.FromHwnd(_hwnd); 170_hwndSource = HwndSource.FromHwnd(_hwnd);
System\Windows\Window.cs (6)
2327internal HwndSource HwndSourceWindow 2545HwndSource source = new HwndSource(param); 6931HwndSource source = _swh.HwndSourceWindow; 7391internal SourceWindowHelper( HwndSource sourceWindow ) 7520internal HwndSource HwndSourceWindow 7695private HwndSource _sourceWindow;
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1174if (e.OldSource is HwndSource &&
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1002HwndSource hwndSource; 1003hwndSource = HwndSource.FromHwnd(hwnd); 2920HwndSource hwndSource = null; 2923hwndSource = PresentationSource.FromVisual(targetVisual) as HwndSource;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
45private HwndSource _hwndSource; 164internal HwndSource HwndSource