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