2 instantiations of HwndSource
PresentationFramework (2)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
3483
HwndSource newWindow = new
HwndSource
(param);
src\Framework\System\Windows\Window.cs (1)
2623
HwndSource source = new
HwndSource
(param);
149 references to HwndSource
PresentationCore (81)
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (2)
177
HwndSource
hwndSource =
HwndSource
.CriticalFromHwnd(hwnd);
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
202
HwndSource
hwndSource = presentationSource as
HwndSource
;
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (6)
210
HwndSource
hwndSource = presentationSource as
HwndSource
;
239
HwndSource
hwndSource = presentationSource as
HwndSource
;
524
HwndSource
hwndSource = presentationSource as
HwndSource
;
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (3)
46
private static
HwndSource
s_ActiveHwndSource;
155
HwndSource
savedActiveHwndSource = s_ActiveHwndSource;
163
s_ActiveHwndSource = PresentationSource.FromDependencyObject(args.Parent) as System.Windows.Interop.
HwndSource
;
Core\CSharp\System\Windows\DragDrop.cs (2)
1336
HwndSource
source;
1343
source =
HwndSource
.FromHwnd(_windowHandle);
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (2)
556
return
HwndSource
.FromHwnd(hwnd);
569
return
HwndSource
.CriticalFromHwnd(hwnd);
Core\CSharp\System\Windows\Input\InputElement.cs (4)
313
HwndSource
sourceFrom = PresentationSource.CriticalFromVisual(rootFrom) as
HwndSource
;
314
HwndSource
sourceTo = PresentationSource.CriticalFromVisual(rootTo) as
HwndSource
;
Core\CSharp\System\Windows\Input\MouseDevice.cs (4)
2190
HwndSource
source = inputSource as
HwndSource
;
2196
HwndSource
sourceHit = null ;
2218
sourceHit =
HwndSource
.CriticalFromHwnd(hwndHit);
Core\CSharp\System\Windows\Interop\HwndAppCommandInputProvider.cs (3)
21
internal HwndAppCommandInputProvider(
HwndSource
source )
32
_source = new SecurityCriticalDataClass<
HwndSource
>(source);
145
private SecurityCriticalDataClass<
HwndSource
> _source;
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (16)
26
internal HwndKeyboardInputProvider(
HwndSource
source)
37
_source = new SecurityCriticalDataClass<
HwndSource
>(source);
270
HwndSource
._eatCharMessages = true;
271
DispatcherOperation restoreCharMessages = Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(
HwndSource
.RestoreCharMessages), null);
287
HwndSource
._eatCharMessages = false;
326
if(
HwndSource
._eatCharMessages)
409
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(focusedDO) as
HwndSource
;
494
HwndSource
thisSource = _source.Value;
541
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as
HwndSource
;
564
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(restoreFocusDO) as
HwndSource
;
829
HwndSource
hwndSource =
HwndSource
.CriticalFromHwnd(hwnd);
962
private SecurityCriticalDataClass<
HwndSource
> _source;
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (7)
25
internal HwndMouseInputProvider(
HwndSource
source)
38
_source = new SecurityCriticalDataClass<
HwndSource
>(source);
273
HwndSource
inputSource = PresentationSource.FromDependencyObject(containingVisual) as
HwndSource
;
1134
HwndSource
hwndSource;
1135
hwndSource =
HwndSource
.CriticalFromHwnd(hwnd);
1419
private SecurityCriticalDataClass<
HwndSource
> _source;
Core\CSharp\System\Windows\Interop\HwndPanningFeedback.cs (2)
32
public HwndPanningFeedback(
HwndSource
hwndSource)
167
private
HwndSource
_hwndSource;
Core\CSharp\System\Windows\Interop\HwndSource.cs (13)
771
public static
HwndSource
FromHwnd(IntPtr hwnd)
782
internal static
HwndSource
CriticalFromHwnd(IntPtr hwnd)
788
HwndSource
hwndSource = null;
791
HwndSource
test = source as
HwndSource
;
2398
HwndSource
mnemonicScope = (focusObject == null ? null : PresentationSource.CriticalFromVisual(focusObject) as
HwndSource
);
3089
public WeakEventDispatcherShutdown(
HwndSource
source, Dispatcher that): base(source)
3097
HwndSource
source = this.Target as
HwndSource
;
3126
public WeakEventPreprocessMessage(
HwndSource
source, bool addToFront): base(source)
3147
HwndSource
source = this.Target as
HwndSource
;
Core\CSharp\System\Windows\Interop\HwndSourceKeyboardInputSite.cs (2)
22
public HwndSourceKeyboardInputSite(
HwndSource
source, IKeyboardInputSink sink)
113
private
HwndSource
_source;
Core\CSharp\System\Windows\Interop\HwndSourceParameters.cs (1)
274
get { return _acquireHwndFocusInMenuMode ??
HwndSource
.DefaultAcquireHwndFocusInMenuMode; }
Core\CSharp\System\Windows\Interop\HwndStylusInputProvider.cs (3)
38
internal HwndStylusInputProvider(
HwndSource
source)
59
_source = new SecurityCriticalDataClass<
HwndSource
>(source);
205
private SecurityCriticalDataClass<
HwndSource
> _source;
Core\CSharp\System\Windows\Interop\HwndTarget.cs (4)
956
var
hwndSource =
HwndSource
.FromHwnd(_hWnd);
1001
var
hwndSource =
HwndSource
.FromHwnd(_hWnd);
Shared\MS\Internal\PointUtil.cs (5)
185
HwndSource
inputSource = presentationSource as
HwndSource
;
212
HwndSource
inputSource = presentationSource as
HwndSource
;
308
internal static Rect ClientToScreen(Rect rectClient,
HwndSource
hwndSource)
PresentationFramework (59)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
678
HwndSource
hwndSource = base.HwndSourceWindow;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
305
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(findToolBar) as
HwndSource
;
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (4)
152
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(uiScope) as
HwndSource
;
179
HwndSource
hwndSource = PresentationSource.CriticalFromVisual(uiScope) as
HwndSource
;
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
79
HwndSource
hwndSource = presentationSource as
HwndSource
;
127
HwndSource
hwndSource = presentationSource as
HwndSource
;
src\Framework\System\Windows\Controls\ComboBox.cs (2)
1951
HwndSource
source = PresentationSource.CriticalFromVisual(itemsHost) as
HwndSource
;
src\Framework\System\Windows\Controls\Menu.cs (2)
272
System.Windows.Interop.
HwndSource
source = PresentationSource.CriticalFromVisual(this) as System.Windows.Interop.
HwndSource
;
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (2)
630
HwndSource
hwndSourceWithFocus = hwndWithFocus != IntPtr.Zero ?
HwndSource
.CriticalFromHwnd(hwndWithFocus) : null;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (18)
3019
HwndSource
hwnd = _window.Value;
3034
HwndSource
targetWindow = PopupSecurityHelper.GetPresentationSource(rootVisual) as
HwndSource
;
3050
private NativeMethods.POINT ClientToScreen(
HwndSource
hwnd, Point clientPt)
3053
HwndSource
parent = null;
3056
parent =
HwndSource
.CriticalFromHwnd(ParentHandle);
3086
HwndSource
hwndSource = null;
3089
hwndSource = PopupSecurityHelper.GetPresentationSource(targetVisual) as
HwndSource
;
3190
HwndSource
hwndSource = null;
3193
hwndSource = PopupSecurityHelper.GetPresentationSource(targetVisual) as
HwndSource
;
3431
HwndSource
hwndSource = PopupSecurityHelper.GetPresentationSource(mainTreeVisual) as
HwndSource
;
3483
HwndSource
newWindow = new HwndSource(param);
3497
_window = new SecurityCriticalDataClass<
HwndSource
>(newWindow);
3540
private static IntPtr GetHandle(
HwndSource
hwnd)
3552
private static IntPtr GetParentHandle(
HwndSource
hwnd)
3647
HwndSource
hwnd = _window.Value;
3689
private SecurityCriticalDataClass<
HwndSource
> _window;
src\Framework\System\Windows\Documents\ImmComposition.cs (10)
80
internal ImmComposition(
HwndSource
source)
103
HwndSource
source = PresentationSource.CriticalFromVisual(scope) as
HwndSource
;
324
HwndSource
newSource = null;
325
HwndSource
oldSource = null;
330
newSource = e.NewSource as
HwndSource
;
331
oldSource = e.OldSource as
HwndSource
;
357
private void UpdateSource(
HwndSource
oldSource,
HwndSource
newSource)
2110
private
HwndSource
_source;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (3)
1304
HwndSource
hwndSource = keyEventArgs.UnsafeInputSource as
HwndSource
;
3396
source =
HwndSource
.CriticalFromHwnd(activeWindow);
src\Framework\System\Windows\Interop\HwndHost.cs (2)
1159
HwndSource
hwndSource = source as
HwndSource
;
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (3)
52
private
HwndSource
_hwndSource = null;
212
_hwndSource =
HwndSource
.FromHwnd(_hwnd);
237
_hwndSource =
HwndSource
.FromHwnd(_hwnd);
src\Framework\System\Windows\Window.cs (6)
2393
internal
HwndSource
HwndSourceWindow
2623
HwndSource
source = new HwndSource(param);
7258
HwndSource
source = _swh.HwndSourceWindow;
7796
internal SourceWindowHelper(
HwndSource
sourceWindow )
7982
internal
HwndSource
HwndSourceWindow
8223
private
HwndSource
_sourceWindow;
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
57
var rootVisual =
HwndSource
.FromHwnd(hwnd).RootVisual;
System.Activities.Presentation\System\Activities\Presentation\Hosting\WindowHelperService.cs (4)
18
HwndSource
hwndSource;
160
this.hwndSource =
HwndSource
.FromHwnd(this.ParentWindowHwnd);
166
this.hwndSource =
HwndSource
.FromVisual(this.View) as
HwndSource
;
System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (4)
53
HwndSource
source =
HwndSource
.FromHwnd(hwnd);
60
HwndSource
source =
HwndSource
.FromHwnd(hwnd);