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