2 instantiations of HwndSource
PresentationFramework (2)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
3483HwndSource newWindow = new HwndSource(param);
src\Framework\System\Windows\Window.cs (1)
2623HwndSource source = new HwndSource(param);
149 references to HwndSource
PresentationCore (81)
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (2)
177HwndSource hwndSource = HwndSource.CriticalFromHwnd(hwnd);
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
202HwndSource hwndSource = presentationSource as HwndSource;
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (6)
210HwndSource hwndSource = presentationSource as HwndSource; 239HwndSource hwndSource = presentationSource as HwndSource; 524HwndSource hwndSource = presentationSource as HwndSource;
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (3)
46private static HwndSource s_ActiveHwndSource; 155HwndSource savedActiveHwndSource = s_ActiveHwndSource; 163s_ActiveHwndSource = PresentationSource.FromDependencyObject(args.Parent) as System.Windows.Interop.HwndSource;
Core\CSharp\System\Windows\DragDrop.cs (2)
1336HwndSource source; 1343source = HwndSource.FromHwnd(_windowHandle);
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (2)
556return HwndSource.FromHwnd(hwnd); 569return HwndSource.CriticalFromHwnd(hwnd);
Core\CSharp\System\Windows\Input\InputElement.cs (4)
313HwndSource sourceFrom = PresentationSource.CriticalFromVisual(rootFrom) as HwndSource; 314HwndSource sourceTo = PresentationSource.CriticalFromVisual(rootTo) as HwndSource;
Core\CSharp\System\Windows\Input\MouseDevice.cs (4)
2190HwndSource source = inputSource as HwndSource; 2196HwndSource sourceHit = null ; 2218sourceHit = HwndSource.CriticalFromHwnd(hwndHit);
Core\CSharp\System\Windows\Interop\HwndAppCommandInputProvider.cs (3)
21internal HwndAppCommandInputProvider( HwndSource source ) 32_source = new SecurityCriticalDataClass<HwndSource>(source); 145private SecurityCriticalDataClass<HwndSource> _source;
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (16)
26internal HwndKeyboardInputProvider(HwndSource source) 37_source = new SecurityCriticalDataClass<HwndSource>(source); 270HwndSource._eatCharMessages = true; 271DispatcherOperation restoreCharMessages = Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(HwndSource.RestoreCharMessages), null); 287HwndSource._eatCharMessages = false; 326if(HwndSource._eatCharMessages) 409HwndSource hwndSource = PresentationSource.CriticalFromVisual(focusedDO) as HwndSource; 494HwndSource thisSource = _source.Value; 541HwndSource hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as HwndSource; 564HwndSource hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as HwndSource; 829HwndSource hwndSource = HwndSource.CriticalFromHwnd(hwnd); 962private SecurityCriticalDataClass<HwndSource> _source;
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (7)
25internal HwndMouseInputProvider(HwndSource source) 38_source = new SecurityCriticalDataClass<HwndSource>(source); 273HwndSource inputSource = PresentationSource.FromDependencyObject(containingVisual) as HwndSource; 1134HwndSource hwndSource; 1135hwndSource = HwndSource.CriticalFromHwnd(hwnd); 1419private SecurityCriticalDataClass<HwndSource> _source;
Core\CSharp\System\Windows\Interop\HwndPanningFeedback.cs (2)
32public HwndPanningFeedback(HwndSource hwndSource) 167private HwndSource _hwndSource;
Core\CSharp\System\Windows\Interop\HwndSource.cs (13)
771public static HwndSource FromHwnd(IntPtr hwnd) 782internal static HwndSource CriticalFromHwnd(IntPtr hwnd) 788HwndSource hwndSource = null; 791HwndSource test = source as HwndSource; 2398HwndSource mnemonicScope = (focusObject == null ? null : PresentationSource.CriticalFromVisual(focusObject) as HwndSource); 3089public WeakEventDispatcherShutdown(HwndSource source, Dispatcher that): base(source) 3097HwndSource source = this.Target as HwndSource; 3126public WeakEventPreprocessMessage(HwndSource source, bool addToFront): base(source) 3147HwndSource source = this.Target as HwndSource;
Core\CSharp\System\Windows\Interop\HwndSourceKeyboardInputSite.cs (2)
22public HwndSourceKeyboardInputSite(HwndSource source, IKeyboardInputSink sink) 113private HwndSource _source;
Core\CSharp\System\Windows\Interop\HwndSourceParameters.cs (1)
274get { return _acquireHwndFocusInMenuMode ?? HwndSource.DefaultAcquireHwndFocusInMenuMode; }
Core\CSharp\System\Windows\Interop\HwndStylusInputProvider.cs (3)
38internal HwndStylusInputProvider(HwndSource source) 59_source = new SecurityCriticalDataClass<HwndSource>(source); 205private SecurityCriticalDataClass<HwndSource> _source;
Core\CSharp\System\Windows\Interop\HwndTarget.cs (4)
956var hwndSource = HwndSource.FromHwnd(_hWnd); 1001var hwndSource = HwndSource.FromHwnd(_hWnd);
Shared\MS\Internal\PointUtil.cs (5)
185HwndSource inputSource = presentationSource as HwndSource; 212HwndSource inputSource = presentationSource as HwndSource; 308internal static Rect ClientToScreen(Rect rectClient, HwndSource hwndSource)
PresentationFramework (59)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
678HwndSource hwndSource = base.HwndSourceWindow;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
305HwndSource hwndSource = PresentationSource.CriticalFromVisual(findToolBar) as HwndSource;
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (4)
152HwndSource hwndSource = PresentationSource.CriticalFromVisual(uiScope) as HwndSource; 179HwndSource hwndSource = PresentationSource.CriticalFromVisual(uiScope) as HwndSource;
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
79HwndSource hwndSource = presentationSource as HwndSource; 127HwndSource hwndSource = presentationSource as HwndSource;
src\Framework\System\Windows\Controls\ComboBox.cs (2)
1951HwndSource source = PresentationSource.CriticalFromVisual(itemsHost) as HwndSource;
src\Framework\System\Windows\Controls\Menu.cs (2)
272System.Windows.Interop.HwndSource source = PresentationSource.CriticalFromVisual(this) as System.Windows.Interop.HwndSource;
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (2)
630HwndSource hwndSourceWithFocus = hwndWithFocus != IntPtr.Zero ? HwndSource.CriticalFromHwnd(hwndWithFocus) : null;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (18)
3019HwndSource hwnd = _window.Value; 3034HwndSource targetWindow = PopupSecurityHelper.GetPresentationSource(rootVisual) as HwndSource; 3050private NativeMethods.POINT ClientToScreen(HwndSource hwnd, Point clientPt) 3053HwndSource parent = null; 3056parent = HwndSource.CriticalFromHwnd(ParentHandle); 3086HwndSource hwndSource = null; 3089hwndSource = PopupSecurityHelper.GetPresentationSource(targetVisual) as HwndSource; 3190HwndSource hwndSource = null; 3193hwndSource = PopupSecurityHelper.GetPresentationSource(targetVisual) as HwndSource; 3431HwndSource hwndSource = PopupSecurityHelper.GetPresentationSource(mainTreeVisual) as HwndSource; 3483HwndSource newWindow = new HwndSource(param); 3497_window = new SecurityCriticalDataClass<HwndSource>(newWindow); 3540private static IntPtr GetHandle(HwndSource hwnd) 3552private static IntPtr GetParentHandle(HwndSource hwnd) 3647HwndSource hwnd = _window.Value; 3689private SecurityCriticalDataClass<HwndSource> _window;
src\Framework\System\Windows\Documents\ImmComposition.cs (10)
80internal ImmComposition(HwndSource source) 103HwndSource source = PresentationSource.CriticalFromVisual(scope) as HwndSource; 324HwndSource newSource = null; 325HwndSource oldSource = null; 330newSource = e.NewSource as HwndSource; 331oldSource = e.OldSource as HwndSource; 357private void UpdateSource(HwndSource oldSource, HwndSource newSource) 2110private HwndSource _source;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (3)
1304HwndSource hwndSource = keyEventArgs.UnsafeInputSource as HwndSource; 3396source = HwndSource.CriticalFromHwnd(activeWindow);
src\Framework\System\Windows\Interop\HwndHost.cs (2)
1159HwndSource hwndSource = source as HwndSource ;
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (3)
52private HwndSource _hwndSource = null; 212_hwndSource = HwndSource.FromHwnd(_hwnd); 237_hwndSource = HwndSource.FromHwnd(_hwnd);
src\Framework\System\Windows\Window.cs (6)
2393internal HwndSource HwndSourceWindow 2623HwndSource source = new HwndSource(param); 7258HwndSource source = _swh.HwndSourceWindow; 7796internal SourceWindowHelper( HwndSource sourceWindow ) 7982internal HwndSource HwndSourceWindow 8223private HwndSource _sourceWindow;
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
57var rootVisual = HwndSource.FromHwnd(hwnd).RootVisual;
System.Activities.Presentation\System\Activities\Presentation\Hosting\WindowHelperService.cs (4)
18HwndSource hwndSource; 160this.hwndSource = HwndSource.FromHwnd(this.ParentWindowHwnd); 166this.hwndSource = HwndSource.FromVisual(this.View) as HwndSource;
System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (4)
53HwndSource source = HwndSource.FromHwnd(hwnd); 60HwndSource source = HwndSource.FromHwnd(hwnd);