Implemented interface member:
property
Handle
System.Windows.Interop.IWin32Window.Handle
57 references to Handle
PresentationCore (42)
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
134return new InputPane(source?.Handle ?? null);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (2)
172HandleRef handleRef = new HandleRef(inputSource, inputSource.Handle); 195HandleRef handleRef = new HandleRef(inputSource, inputSource.Handle);
System\Windows\Input\InputElement.cs (2)
275if(sourceFrom != null && sourceFrom.Handle != IntPtr.Zero && sourceFrom.CompositionTarget != null && 276sourceTo != null && sourceTo.Handle != IntPtr.Zero && sourceTo.CompositionTarget != null)
System\Windows\Input\Stylus\Wisp\PenContexts.cs (4)
17if(hwndSource == null || IntPtr.Zero == (hwndSource).Handle) 33_contexts = _stylusLogic.WispTabletDevices.CreateContexts(_inputSource.Handle, this); 205if (_contexts is not null && index <= _contexts.Length && _inputSource.Handle != 0) 212PenContext newContext = _stylusLogic.TabletDevices[(int)index].As<WispTabletDevice>().CreateContext(_inputSource.Handle, this);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (4)
639IntPtr hwnd = hwndSource != null ? hwndSource.Handle : IntPtr.Zero; 654UnsafeNativeMethods.SetForegroundWindow(new HandleRef(this, hwndSource.Handle)); 3157int style = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, hwndSource.Handle), NativeMethods.GWL_STYLE); 3195if (UnsafeNativeMethods.IsWindow(new HandleRef(hwndSource, hwndSource.Handle)))
System\Windows\InterOp\HwndKeyboardInputProvider.cs (7)
65HandleRef thisWindow = new HandleRef(this, _source.Handle); 126if (!_active && focus == _source.Handle) 140result = (focus == _source.Handle); 328if(_active && wParam != _source.Handle ) 337_restoreFocusWindow = GetImmediateChildFor((IntPtr)wParam, _source.Handle); 494if (focus == thisSource.Handle) 718ReportInput(_source.Handle,
System\Windows\InterOp\HwndMouseInputProvider.cs (12)
38StopTracking(_source.Handle); 79StopTracking(_source.Handle); 124SafeNativeMethods.SetCapture(new HandleRef(this, _source.Handle)); 126if (capture != _source.Handle) 154SafeNativeMethods.ScreenToClient(new HandleRef(this, _source.Handle), ref ptCursor); 165ReportInput(_source.Handle, 673IntPtr hwndCurrent = _source.Handle; 727if(lParam != _source.Handle) // Ignore odd messages that claim we are losing capture to ourselves. 938if (!stillActiveIfOverSelf && hwndToCheck == _source.Handle) 980ReportInput(_source.Handle, 1389int windowStyle = SafeNativeMethods.GetWindowStyle(new HandleRef(this, _source.Handle), true); 1394SafeNativeMethods.GetClientRect(new HandleRef(this, _source.Handle), ref rcClient);
System\Windows\InterOp\HwndPanningFeedback.cs (1)
47IntPtr handle = _hwndSource.Handle;
System\Windows\InterOp\HwndPointerInputProvider.cs (1)
78int style = MS.Win32.UnsafeNativeMethods.GetWindowLong(new HandleRef(this, source.Handle), MS.Win32.NativeMethods.GWL_STYLE);
System\Windows\InterOp\HwndSource.cs (7)
674if (test != null && test.Handle == hwnd) 851IntPtr hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, Handle), NativeMethods.GA_ROOT); 934return ( capture == Handle ); 951return new HandleRef(this,Handle); 1524hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, Handle), NativeMethods.GA_ROOT); 1528hwndRoot = Handle; 2642return UnsafeNativeMethods.GetFocus() == Handle;
System\Windows\InterOp\HwndStylusInputProvider.cs (1)
39sourceHandle = source.Handle;
PresentationFramework (7)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
284IntPtr hwnd = (hwndSource != null) ? hwndSource.Handle : IntPtr.Zero;
System\Windows\Appearance\WindowBackdropManager.cs (1)
114if (windowSource?.Handle != IntPtr.Zero && windowSource.CompositionTarget != null)
System\Windows\Controls\Primitives\Popup.cs (1)
3396return (hwnd!=null ? hwnd.Handle : IntPtr.Zero);
System\Windows\Interop\HwndHost.cs (1)
936hwndParent = hwndSource.Handle;
System\Windows\Window.cs (3)
7419return _sourceWindow.Handle; 7486UnsafeNativeMethods.ClientToScreen(new HandleRef(this, _sourceWindow.Handle), ref pt); 7516return (_sourceWindow.Handle == UnsafeNativeMethods.GetActiveWindow());
WindowsFormsIntegration (8)
System\Windows\Integration\ElementHost.cs (8)
226return (focusHandle == this.Handle || (this.HwndSource != null && focusHandle == this.HwndSource.Handle)); 260if (this.HwndSource != null && this.HwndSource.Handle != IntPtr.Zero) 262NativeMethodsSetLastError.EnableWindow(this.HwndSource.Handle, this.Enabled); 632SafeNativeMethods.SetWindowPos(_hwndSource.Handle, NativeMethods.HWND_TOP, 0, 0, this.Width, this.Height, 0); 649ImeMode hsImeMode = SWF.ImeContext.GetImeMode(this.HwndSource.Handle); 655SWF.ImeContext.SetImeStatus(ehImeMode, this.HwndSource.Handle); 739ImeMode hsImeMode = SWF.ImeContext.GetImeMode(this.HwndSource.Handle); 799if (this.HwndSource == null || this.HwndSource.Handle != m.WParam)