3 instantiations of HwndSource
PresentationFramework (2)
System\Windows\Controls\Primitives\Popup.cs (1)
3359
HwndSource newWindow = new
HwndSource
(param);
System\Windows\Window.cs (1)
2558
HwndSource source = new
HwndSource
(param);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
583
_hwndSource = new
HwndSource
(HWSParam);
180 references to HwndSource
PresentationCore (111)
MS\Internal\Automation\ElementUtil.cs (2)
166
HwndSource
hwndSource =
HwndSource
.CriticalFromHwnd(hwnd);
MS\Internal\Interop\TipTsfHelper.cs (2)
193
private static
HwndSource
GetHwndSource(DependencyObject focusedObject)
195
return PresentationSource.CriticalFromVisual(focusedObject) as
HwndSource
;
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
138
internal static InputPane GetForWindow(
HwndSource
source)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (5)
170
HwndSource
inputSource = presentationSource as
HwndSource
;
192
HwndSource
inputSource = presentationSource as
HwndSource
;
273
internal static Rect ClientToScreen(Rect rectClient,
HwndSource
hwndSource)
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
190
HwndSource
hwndSource = presentationSource as
HwndSource
;
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (6)
193
HwndSource
hwndSource = presentationSource as
HwndSource
;
216
HwndSource
hwndSource = presentationSource as
HwndSource
;
510
HwndSource
hwndSource = presentationSource as
HwndSource
;
System\Windows\Diagnostics\VisualDiagnostics.cs (3)
39
private static
HwndSource
s_ActiveHwndSource;
142
HwndSource
savedActiveHwndSource = s_ActiveHwndSource;
150
s_ActiveHwndSource = PresentationSource.FromDependencyObject(args.Parent) as System.Windows.Interop.
HwndSource
;
System\Windows\DragDrop.cs (2)
1298
HwndSource
source;
1305
source =
HwndSource
.FromHwnd(_windowHandle);
System\Windows\Input\AccessKeyManager.cs (2)
479
return
HwndSource
.FromHwnd(hwnd);
488
return
HwndSource
.CriticalFromHwnd(hwnd);
System\Windows\Input\InputElement.cs (4)
275
HwndSource
sourceFrom = PresentationSource.CriticalFromVisual(rootFrom) as
HwndSource
;
276
HwndSource
sourceTo = PresentationSource.CriticalFromVisual(rootTo) as
HwndSource
;
System\Windows\Input\MouseDevice.cs (4)
2078
HwndSource
source = inputSource as
HwndSource
;
2083
HwndSource
sourceHit = null ;
2097
sourceHit =
HwndSource
.CriticalFromHwnd(hwndHit);
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
411
var
hwndSource = source as
HwndSource
;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
71
Matrix matrix = (_inputSource as
HwndSource
)?.CompositionTarget?.TransformToDevice ?? Matrix.Identity;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (4)
38
HwndSource
hwndSource = inputSource as
HwndSource
;
558
internal
HwndSource
InputSource => _inputSource;
562
internal
HwndSource
_inputSource;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (13)
647
HwndSource
hwndSource = mouseInputReport.InputSource as
HwndSource
;
2928
HwndSource
source = inputSource as
HwndSource
;
2933
HwndSource
sourceHit = null;
2943
sourceHit =
HwndSource
.CriticalFromHwnd(hwndHit);
3129
HwndSource
hwndSource = (
HwndSource
)inputSource;
3179
internal void UnRegisterHwndForInput(
HwndSource
hwndSource)
3254
HwndSource
hwndSource = mouseInputReport.InputSource as
HwndSource
;
3520
HwndSource
sourceHit =
HwndSource
.CriticalFromHwnd(hwnd);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
1501
HwndSource
hwndSource = (
HwndSource
)inputSource;
1545
HwndSource
newHwndSource =
HwndSource
.CriticalFromHwnd(hwndHit);
System\Windows\InterOp\HwndAppCommandInputProvider.cs (2)
20
internal HwndAppCommandInputProvider(
HwndSource
source )
115
private
HwndSource
_source;
System\Windows\InterOp\HwndKeyboardInputProvider.cs (15)
23
internal HwndKeyboardInputProvider(
HwndSource
source)
217
HwndSource
._eatCharMessages = true;
218
DispatcherOperation restoreCharMessages = Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(
HwndSource
.RestoreCharMessages), null);
234
HwndSource
._eatCharMessages = false;
273
if(
HwndSource
._eatCharMessages)
356
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(focusedDO) as
HwndSource
;
435
HwndSource
thisSource = _source;
482
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as
HwndSource
;
505
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as
HwndSource
;
743
HwndSource
hwndSource =
HwndSource
.CriticalFromHwnd(hwnd);
864
private
HwndSource
_source;
System\Windows\InterOp\HwndMouseInputProvider.cs (11)
24
internal HwndMouseInputProvider(
HwndSource
source)
218
HwndSource
inputSource = PresentationSource.FromDependencyObject(containingVisual) as
HwndSource
;
1027
HwndSource
hwndSource;
1050
private bool HasCustomChrome(
HwndSource
hwndSource, ref NativeMethods.RECT rcClient)
1083
private bool EnsureFrameworkAccessors(
HwndSource
hwndSource)
1125
private Assembly GetPresentationFrameworkFromHwndSource(
HwndSource
hwndSource)
1180
HwndSource
hwndSource;
1184
private bool IsOurWindowImpl(IntPtr hwnd, out
HwndSource
hwndSource)
1193
hwndSource =
HwndSource
.CriticalFromHwnd(hwnd);
1459
private
HwndSource
_source;
System\Windows\InterOp\HwndPanningFeedback.cs (2)
28
public HwndPanningFeedback(
HwndSource
hwndSource)
135
private
HwndSource
_hwndSource;
System\Windows\InterOp\HwndPointerInputProvider.cs (2)
33
private readonly
HwndSource
_source;
72
internal HwndPointerInputProvider(
HwndSource
source)
System\Windows\InterOp\HwndSource.cs (13)
671
public static
HwndSource
FromHwnd(IntPtr hwnd)
676
internal static
HwndSource
CriticalFromHwnd(IntPtr hwnd)
682
HwndSource
hwndSource = null;
685
HwndSource
test = source as
HwndSource
;
2083
HwndSource
mnemonicScope = (focusObject == null ? null : PresentationSource.CriticalFromVisual(focusObject) as
HwndSource
);
2705
public WeakEventDispatcherShutdown(
HwndSource
source, Dispatcher that): base(source)
2713
HwndSource
source = this.Target as
HwndSource
;
2737
public WeakEventPreprocessMessage(
HwndSource
source, bool addToFront): base(source)
2754
HwndSource
source = this.Target as
HwndSource
;
System\Windows\InterOp\HwndSourceKeyboardInputSite.cs (2)
20
public HwndSourceKeyboardInputSite(
HwndSource
source, IKeyboardInputSink sink)
96
private
HwndSource
_source;
System\Windows\InterOp\HwndSourceParameters.cs (1)
272
get { return _acquireHwndFocusInMenuMode ??
HwndSource
.DefaultAcquireHwndFocusInMenuMode; }
System\Windows\InterOp\HwndStylusInputProvider.cs (2)
36
internal HwndStylusInputProvider(
HwndSource
source)
171
private
HwndSource
_source;
System\Windows\InterOp\HwndTarget.cs (4)
882
var
hwndSource =
HwndSource
.FromHwnd(_hWnd);
923
var
hwndSource =
HwndSource
.FromHwnd(_hWnd);
PresentationFramework (62)
MS\Internal\Documents\DocumentViewerHelper.cs (2)
285
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(findToolBar) as
HwndSource
;
System\Windows\Appearance\WindowBackdropManager.cs (4)
99
var
windowSource =
HwndSource
.FromHwnd(hwnd);
114
var
windowSource =
HwndSource
.FromHwnd(hwnd);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (4)
144
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(uiScope) as
HwndSource
;
165
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(uiScope) as
HwndSource
;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
71
HwndSource
hwndSource = presentationSource as
HwndSource
;
113
HwndSource
hwndSource = presentationSource as
HwndSource
;
System\Windows\Controls\ComboBox.cs (2)
1943
HwndSource
source = PresentationSource.CriticalFromVisual(itemsHost) as
HwndSource
;
System\Windows\Controls\Menu.cs (2)
251
System.Windows.Interop.
HwndSource
source = PresentationSource.CriticalFromVisual(this) as System.Windows.Interop.
HwndSource
;
System\Windows\Controls\PopupControlService.cs (2)
1611
System.Windows.Interop.
HwndSource
hwndSource = _source as System.Windows.Interop.
HwndSource
;
System\Windows\Controls\Primitives\MenuBase.cs (2)
621
HwndSource
hwndSourceWithFocus = hwndWithFocus != IntPtr.Zero ?
HwndSource
.CriticalFromHwnd(hwndWithFocus) : null;
System\Windows\Controls\Primitives\Popup.cs (16)
2989
HwndSource
targetWindow = PopupSecurityHelper.GetPresentationSource(rootVisual) as
HwndSource
;
2999
private NativeMethods.POINT ClientToScreen(
HwndSource
hwnd, Point clientPt)
3002
HwndSource
parent = null;
3005
parent =
HwndSource
.CriticalFromHwnd(ParentHandle);
3030
HwndSource
hwndSource = null;
3033
hwndSource = PopupSecurityHelper.GetPresentationSource(targetVisual) as
HwndSource
;
3125
HwndSource
hwndSource = null;
3128
hwndSource = PopupSecurityHelper.GetPresentationSource(targetVisual) as
HwndSource
;
3311
HwndSource
hwndSource = PopupSecurityHelper.GetPresentationSource(mainTreeVisual) as
HwndSource
;
3359
HwndSource
newWindow = new HwndSource(param);
3400
private static IntPtr GetHandle(
HwndSource
hwnd)
3406
private static IntPtr GetParentHandle(
HwndSource
hwnd)
3464
HwndSource
hwnd = _window;
3484
private
HwndSource
_window;
System\Windows\Documents\ImmComposition.cs (10)
63
internal ImmComposition(
HwndSource
source)
81
HwndSource
source = PresentationSource.CriticalFromVisual(scope) as
HwndSource
;
272
HwndSource
newSource = null;
273
HwndSource
oldSource = null;
275
newSource = e.NewSource as
HwndSource
;
276
oldSource = e.OldSource as
HwndSource
;
293
private void UpdateSource(
HwndSource
oldSource,
HwndSource
newSource)
1919
private
HwndSource
_source;
System\Windows\Input\KeyboardNavigation.cs (3)
1219
HwndSource
hwndSource = keyEventArgs.UnsafeInputSource as
HwndSource
;
3295
source =
HwndSource
.CriticalFromHwnd(activeWindow);
System\Windows\Interop\HwndHost.cs (2)
935
HwndSource
hwndSource = source as
HwndSource
;
System\Windows\Shell\WindowChromeWorker.cs (3)
45
private
HwndSource
_hwndSource = null;
156
_hwndSource =
HwndSource
.FromHwnd(_hwnd);
175
_hwndSource =
HwndSource
.FromHwnd(_hwnd);
System\Windows\Window.cs (6)
2340
internal
HwndSource
HwndSourceWindow
2558
HwndSource
source = new HwndSource(param);
6944
HwndSource
source = _swh.HwndSourceWindow;
7404
internal SourceWindowHelper(
HwndSource
sourceWindow )
7533
internal
HwndSource
HwndSourceWindow
7708
private
HwndSource
_sourceWindow;
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1177
if (e.OldSource is
HwndSource
&&
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1007
HwndSource
hwndSource;
1008
hwndSource =
HwndSource
.FromHwnd(hwnd);
2925
HwndSource
hwndSource = null;
2928
hwndSource = PresentationSource.FromVisual(targetVisual) as
HwndSource
;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
48
private
HwndSource
_hwndSource;
167
internal
HwndSource
HwndSource