2 writes to _hwndTarget
PresentationCore (2)
System\Windows\InterOp\HwndSource.cs (2)
267
_hwndTarget
= new HwndTarget(_hwndWrapper.Handle)
2569
_hwndTarget
= null;
32 references to _hwndTarget
PresentationCore (32)
System\Windows\InterOp\HwndSource.cs (32)
271
if (
_hwndTarget
.UsesPerPixelOpacity)
273
_hwndTarget
.BackgroundColor = Colors.Transparent;
442
_hwndTarget
?.OnDpiChanged(e);
477
/// We calculate the current client rect size (by asking <see cref="
_hwndTarget
"/>),
483
if (
_hwndTarget
!= null)
489
_hwndTarget
?.OnDpiChangedAfterParent(e);
579
if (
_hwndTarget
!= null && !
_hwndTarget
.IsDisposed)
581
_hwndTarget
.RootVisual = _rootVisual;
589
if (
_hwndTarget
!= null && !
_hwndTarget
.IsDisposed)
591
_hwndTarget
.RootVisual = null;
633
if (value != null &&
_hwndTarget
!= null && !
_hwndTarget
.IsDisposed &&
636
_hwndTarget
.EnsureAutomationPeer(value);
704
if (
_hwndTarget
!= null &&
_hwndTarget
.IsDisposed)
709
return
_hwndTarget
;
865
return
_hwndTarget
.TransformToDevice.Transform(pt);
870
return
_hwndTarget
.TransformFromDevice.Transform(pt);
1004
if ((_rootVisual is UIElement) &&
_hwndTarget
!= null && !
_hwndTarget
.IsDisposed)
1018
Debug.Assert(
_hwndTarget
!= null, "HwndTarget is null");
1019
Debug.Assert(!
_hwndTarget
.IsDisposed, "HwndTarget is disposed");
1126
if(
_hwndTarget
!= null)
1128
return
_hwndTarget
.UsesPerPixelOpacity;
1161
HwndTarget hwndTarget =
_hwndTarget
;
1241
bool usesPerPixelOpacity = _constructionParameters != null ? ((HwndSourceParameters)_constructionParameters).EffectivePerPixelOpacity :
_hwndTarget
.UsesPerPixelOpacity;
2566
if (
_hwndTarget
!= null)
2568
_hwndTarget
.Dispose();
2642
return !_isDisposed &&
_hwndTarget
is not null && !
_hwndTarget
.IsDisposed;