3 instantiations of HwndSource
PresentationFramework (2)
System\Windows\Controls\Primitives\Popup.cs (1)
3352
HwndSource newWindow = new
HwndSource
(param);
System\Windows\Window.cs (1)
2545
HwndSource source = new
HwndSource
(param);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
580
_hwndSource = new
HwndSource
(HWSParam);
180 references to HwndSource
PresentationCore (111)
MS\Internal\Automation\ElementUtil.cs (2)
151
HwndSource
hwndSource =
HwndSource
.CriticalFromHwnd(hwnd);
MS\Internal\Interop\TipTsfHelper.cs (2)
189
private static
HwndSource
GetHwndSource(DependencyObject focusedObject)
191
return PresentationSource.CriticalFromVisual(focusedObject) as
HwndSource
;
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
132
internal static InputPane GetForWindow(
HwndSource
source)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (5)
167
HwndSource
inputSource = presentationSource as
HwndSource
;
189
HwndSource
inputSource = presentationSource as
HwndSource
;
270
internal static Rect ClientToScreen(Rect rectClient,
HwndSource
hwndSource)
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
182
HwndSource
hwndSource = presentationSource as
HwndSource
;
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (6)
184
HwndSource
hwndSource = presentationSource as
HwndSource
;
207
HwndSource
hwndSource = presentationSource as
HwndSource
;
501
HwndSource
hwndSource = presentationSource as
HwndSource
;
System\Windows\Diagnostics\VisualDiagnostics.cs (3)
34
private static
HwndSource
s_ActiveHwndSource;
137
HwndSource
savedActiveHwndSource = s_ActiveHwndSource;
145
s_ActiveHwndSource = PresentationSource.FromDependencyObject(args.Parent) as System.Windows.Interop.
HwndSource
;
System\Windows\DragDrop.cs (2)
1291
HwndSource
source;
1298
source =
HwndSource
.FromHwnd(_windowHandle);
System\Windows\Input\AccessKeyManager.cs (2)
467
return
HwndSource
.FromHwnd(hwnd);
476
return
HwndSource
.CriticalFromHwnd(hwnd);
System\Windows\Input\InputElement.cs (4)
271
HwndSource
sourceFrom = PresentationSource.CriticalFromVisual(rootFrom) as
HwndSource
;
272
HwndSource
sourceTo = PresentationSource.CriticalFromVisual(rootTo) as
HwndSource
;
System\Windows\Input\MouseDevice.cs (4)
2069
HwndSource
source = inputSource as
HwndSource
;
2074
HwndSource
sourceHit = null ;
2088
sourceHit =
HwndSource
.CriticalFromHwnd(hwndHit);
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
401
var
hwndSource = source as
HwndSource
;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
59
Matrix matrix = (_inputSource as
HwndSource
)?.CompositionTarget?.TransformToDevice ?? Matrix.Identity;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (4)
16
HwndSource
hwndSource = inputSource as
HwndSource
;
536
internal
HwndSource
InputSource => _inputSource;
540
internal
HwndSource
_inputSource;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (13)
638
HwndSource
hwndSource = mouseInputReport.InputSource as
HwndSource
;
2919
HwndSource
source = inputSource as
HwndSource
;
2924
HwndSource
sourceHit = null;
2934
sourceHit =
HwndSource
.CriticalFromHwnd(hwndHit);
3120
HwndSource
hwndSource = (
HwndSource
)inputSource;
3170
internal void UnRegisterHwndForInput(
HwndSource
hwndSource)
3245
HwndSource
hwndSource = mouseInputReport.InputSource as
HwndSource
;
3511
HwndSource
sourceHit =
HwndSource
.CriticalFromHwnd(hwnd);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
1498
HwndSource
hwndSource = (
HwndSource
)inputSource;
1542
HwndSource
newHwndSource =
HwndSource
.CriticalFromHwnd(hwndHit);
System\Windows\InterOp\HwndAppCommandInputProvider.cs (2)
15
internal HwndAppCommandInputProvider(
HwndSource
source )
110
private
HwndSource
_source;
System\Windows\InterOp\HwndKeyboardInputProvider.cs (15)
17
internal HwndKeyboardInputProvider(
HwndSource
source)
211
HwndSource
._eatCharMessages = true;
212
DispatcherOperation restoreCharMessages = Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(
HwndSource
.RestoreCharMessages), null);
228
HwndSource
._eatCharMessages = false;
267
if(
HwndSource
._eatCharMessages)
350
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(focusedDO) as
HwndSource
;
429
HwndSource
thisSource = _source;
476
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as
HwndSource
;
499
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as
HwndSource
;
737
HwndSource
hwndSource =
HwndSource
.CriticalFromHwnd(hwnd);
858
private
HwndSource
_source;
System\Windows\InterOp\HwndMouseInputProvider.cs (11)
20
internal HwndMouseInputProvider(
HwndSource
source)
214
HwndSource
inputSource = PresentationSource.FromDependencyObject(containingVisual) as
HwndSource
;
1023
HwndSource
hwndSource;
1046
private bool HasCustomChrome(
HwndSource
hwndSource, ref NativeMethods.RECT rcClient)
1079
private bool EnsureFrameworkAccessors(
HwndSource
hwndSource)
1121
private Assembly GetPresentationFrameworkFromHwndSource(
HwndSource
hwndSource)
1176
HwndSource
hwndSource;
1180
private bool IsOurWindowImpl(IntPtr hwnd, out
HwndSource
hwndSource)
1189
hwndSource =
HwndSource
.CriticalFromHwnd(hwnd);
1455
private
HwndSource
_source;
System\Windows\InterOp\HwndPanningFeedback.cs (2)
23
public HwndPanningFeedback(
HwndSource
hwndSource)
130
private
HwndSource
_hwndSource;
System\Windows\InterOp\HwndPointerInputProvider.cs (2)
28
private readonly
HwndSource
_source;
67
internal HwndPointerInputProvider(
HwndSource
source)
System\Windows\InterOp\HwndSource.cs (13)
659
public static
HwndSource
FromHwnd(IntPtr hwnd)
664
internal static
HwndSource
CriticalFromHwnd(IntPtr hwnd)
670
HwndSource
hwndSource = null;
673
HwndSource
test = source as
HwndSource
;
2060
HwndSource
mnemonicScope = (focusObject == null ? null : PresentationSource.CriticalFromVisual(focusObject) as
HwndSource
);
2682
public WeakEventDispatcherShutdown(
HwndSource
source, Dispatcher that): base(source)
2690
HwndSource
source = this.Target as
HwndSource
;
2714
public WeakEventPreprocessMessage(
HwndSource
source, bool addToFront): base(source)
2731
HwndSource
source = this.Target as
HwndSource
;
System\Windows\InterOp\HwndSourceKeyboardInputSite.cs (2)
11
public HwndSourceKeyboardInputSite(
HwndSource
source, IKeyboardInputSink sink)
87
private
HwndSource
_source;
System\Windows\InterOp\HwndSourceParameters.cs (1)
267
get { return _acquireHwndFocusInMenuMode ??
HwndSource
.DefaultAcquireHwndFocusInMenuMode; }
System\Windows\InterOp\HwndStylusInputProvider.cs (2)
29
internal HwndStylusInputProvider(
HwndSource
source)
164
private
HwndSource
_source;
System\Windows\InterOp\HwndTarget.cs (4)
869
var
hwndSource =
HwndSource
.FromHwnd(_hWnd);
910
var
hwndSource =
HwndSource
.FromHwnd(_hWnd);
PresentationFramework (62)
MS\Internal\Documents\DocumentViewerHelper.cs (2)
283
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(findToolBar) as
HwndSource
;
System\Windows\Appearance\WindowBackdropManager.cs (4)
98
var
windowSource =
HwndSource
.FromHwnd(hwnd);
113
var
windowSource =
HwndSource
.FromHwnd(hwnd);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (4)
142
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(uiScope) as
HwndSource
;
163
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(uiScope) as
HwndSource
;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
67
HwndSource
hwndSource = presentationSource as
HwndSource
;
109
HwndSource
hwndSource = presentationSource as
HwndSource
;
System\Windows\Controls\ComboBox.cs (2)
1933
HwndSource
source = PresentationSource.CriticalFromVisual(itemsHost) as
HwndSource
;
System\Windows\Controls\Menu.cs (2)
241
System.Windows.Interop.
HwndSource
source = PresentationSource.CriticalFromVisual(this) as System.Windows.Interop.
HwndSource
;
System\Windows\Controls\PopupControlService.cs (2)
1601
System.Windows.Interop.
HwndSource
hwndSource = _source as System.Windows.Interop.
HwndSource
;
System\Windows\Controls\Primitives\MenuBase.cs (2)
612
HwndSource
hwndSourceWithFocus = hwndWithFocus != IntPtr.Zero ?
HwndSource
.CriticalFromHwnd(hwndWithFocus) : null;
System\Windows\Controls\Primitives\Popup.cs (16)
2982
HwndSource
targetWindow = PopupSecurityHelper.GetPresentationSource(rootVisual) as
HwndSource
;
2992
private NativeMethods.POINT ClientToScreen(
HwndSource
hwnd, Point clientPt)
2995
HwndSource
parent = null;
2998
parent =
HwndSource
.CriticalFromHwnd(ParentHandle);
3023
HwndSource
hwndSource = null;
3026
hwndSource = PopupSecurityHelper.GetPresentationSource(targetVisual) as
HwndSource
;
3118
HwndSource
hwndSource = null;
3121
hwndSource = PopupSecurityHelper.GetPresentationSource(targetVisual) as
HwndSource
;
3304
HwndSource
hwndSource = PopupSecurityHelper.GetPresentationSource(mainTreeVisual) as
HwndSource
;
3352
HwndSource
newWindow = new HwndSource(param);
3393
private static IntPtr GetHandle(
HwndSource
hwnd)
3399
private static IntPtr GetParentHandle(
HwndSource
hwnd)
3457
HwndSource
hwnd = _window;
3477
private
HwndSource
_window;
System\Windows\Documents\ImmComposition.cs (10)
55
internal ImmComposition(
HwndSource
source)
73
HwndSource
source = PresentationSource.CriticalFromVisual(scope) as
HwndSource
;
264
HwndSource
newSource = null;
265
HwndSource
oldSource = null;
267
newSource = e.NewSource as
HwndSource
;
268
oldSource = e.OldSource as
HwndSource
;
285
private void UpdateSource(
HwndSource
oldSource,
HwndSource
newSource)
1911
private
HwndSource
_source;
System\Windows\Input\KeyboardNavigation.cs (3)
1209
HwndSource
hwndSource = keyEventArgs.UnsafeInputSource as
HwndSource
;
3285
source =
HwndSource
.CriticalFromHwnd(activeWindow);
System\Windows\Interop\HwndHost.cs (2)
933
HwndSource
hwndSource = source as
HwndSource
;
System\Windows\Shell\WindowChromeWorker.cs (3)
40
private
HwndSource
_hwndSource = null;
151
_hwndSource =
HwndSource
.FromHwnd(_hwnd);
170
_hwndSource =
HwndSource
.FromHwnd(_hwnd);
System\Windows\Window.cs (6)
2327
internal
HwndSource
HwndSourceWindow
2545
HwndSource
source = new HwndSource(param);
6931
HwndSource
source = _swh.HwndSourceWindow;
7391
internal SourceWindowHelper(
HwndSource
sourceWindow )
7520
internal
HwndSource
HwndSourceWindow
7695
private
HwndSource
_sourceWindow;
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1174
if (e.OldSource is
HwndSource
&&
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
1002
HwndSource
hwndSource;
1003
hwndSource =
HwndSource
.FromHwnd(hwnd);
2920
HwndSource
hwndSource = null;
2923
hwndSource = PresentationSource.FromVisual(targetVisual) as
HwndSource
;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
45
private
HwndSource
_hwndSource;
164
internal
HwndSource
HwndSource