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)
133return new InputPane(source?.Handle ?? null);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (2)
171HandleRef handleRef = new HandleRef(inputSource, inputSource.Handle); 194HandleRef handleRef = new HandleRef(inputSource, inputSource.Handle);
System\Windows\Input\InputElement.cs (2)
274if(sourceFrom != null && sourceFrom.Handle != IntPtr.Zero && sourceFrom.CompositionTarget != null && 275sourceTo != null && sourceTo.Handle != IntPtr.Zero && sourceTo.CompositionTarget != null)
System\Windows\Input\Stylus\Wisp\PenContexts.cs (4)
16if(hwndSource == null || IntPtr.Zero == (hwndSource).Handle) 32_contexts = _stylusLogic.WispTabletDevices.CreateContexts(_inputSource.Handle, this); 204if (_contexts is not null && index <= _contexts.Length && _inputSource.Handle != 0) 211PenContext newContext = _stylusLogic.TabletDevices[(int)index].As<WispTabletDevice>().CreateContext(_inputSource.Handle, this);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (4)
647IntPtr hwnd = hwndSource != null ? hwndSource.Handle : IntPtr.Zero; 662UnsafeNativeMethods.SetForegroundWindow(new HandleRef(this, hwndSource.Handle)); 3179int style = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, hwndSource.Handle), NativeMethods.GWL_STYLE); 3217if (UnsafeNativeMethods.IsWindow(new HandleRef(hwndSource, hwndSource.Handle)))
System\Windows\InterOp\HwndKeyboardInputProvider.cs (7)
64HandleRef thisWindow = new HandleRef(this, _source.Handle); 125if (!_active && focus == _source.Handle) 139result = (focus == _source.Handle); 327if(_active && wParam != _source.Handle ) 336_restoreFocusWindow = GetImmediateChildFor((IntPtr)wParam, _source.Handle); 493if (focus == thisSource.Handle) 717ReportInput(_source.Handle,
System\Windows\InterOp\HwndMouseInputProvider.cs (12)
37StopTracking(_source.Handle); 78StopTracking(_source.Handle); 123SafeNativeMethods.SetCapture(new HandleRef(this, _source.Handle)); 125if (capture != _source.Handle) 153SafeNativeMethods.ScreenToClient(new HandleRef(this, _source.Handle), ref ptCursor); 164ReportInput(_source.Handle, 669IntPtr hwndCurrent = _source.Handle; 723if(lParam != _source.Handle) // Ignore odd messages that claim we are losing capture to ourselves. 934if (!stillActiveIfOverSelf && hwndToCheck == _source.Handle) 976ReportInput(_source.Handle, 1385int windowStyle = SafeNativeMethods.GetWindowStyle(new HandleRef(this, _source.Handle), true); 1390SafeNativeMethods.GetClientRect(new HandleRef(this, _source.Handle), ref rcClient);
System\Windows\InterOp\HwndPanningFeedback.cs (1)
46IntPtr handle = _hwndSource.Handle;
System\Windows\InterOp\HwndPointerInputProvider.cs (1)
77int style = MS.Win32.UnsafeNativeMethods.GetWindowLong(new HandleRef(this, source.Handle), MS.Win32.NativeMethods.GWL_STYLE);
System\Windows\InterOp\HwndSource.cs (7)
679if (test != null && test.Handle == hwnd) 856IntPtr hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, Handle), NativeMethods.GA_ROOT); 939return ( capture == Handle ); 956return new HandleRef(this,Handle); 1529hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, Handle), NativeMethods.GA_ROOT); 1533hwndRoot = Handle; 2650return UnsafeNativeMethods.GetFocus() == Handle;
System\Windows\InterOp\HwndStylusInputProvider.cs (1)
38sourceHandle = source.Handle;
PresentationFramework (7)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
283IntPtr hwnd = (hwndSource != null) ? hwndSource.Handle : IntPtr.Zero;
System\Windows\Appearance\WindowBackdropManager.cs (1)
117if (windowSource?.Handle != IntPtr.Zero && windowSource.CompositionTarget != null)
System\Windows\Controls\Primitives\Popup.cs (1)
3400return (hwnd!=null ? hwnd.Handle : IntPtr.Zero);
System\Windows\Interop\HwndHost.cs (1)
931hwndParent = hwndSource.Handle;
System\Windows\Window.cs (3)
7388return _sourceWindow.Handle; 7457UnsafeNativeMethods.ClientToScreen(new HandleRef(this, _sourceWindow.Handle), ref pt); 7487return (_sourceWindow.Handle == UnsafeNativeMethods.GetActiveWindow());
WindowsFormsIntegration (8)
System\Windows\Integration\ElementHost.cs (8)
224return (focusHandle == this.Handle || (this.HwndSource != null && focusHandle == this.HwndSource.Handle)); 258if (this.HwndSource != null && this.HwndSource.Handle != IntPtr.Zero) 260NativeMethodsSetLastError.EnableWindow(this.HwndSource.Handle, this.Enabled); 629SafeNativeMethods.SetWindowPos(_hwndSource.Handle, NativeMethods.HWND_TOP, 0, 0, this.Width, this.Height, 0); 646ImeMode hsImeMode = SWF.ImeContext.GetImeMode(this.HwndSource.Handle); 652SWF.ImeContext.SetImeStatus(ehImeMode, this.HwndSource.Handle); 736ImeMode hsImeMode = SWF.ImeContext.GetImeMode(this.HwndSource.Handle); 796if (this.HwndSource == null || this.HwndSource.Handle != m.WParam)