36 references to CompositionTarget
PresentationCore (18)
System\Windows\Input\InputElement.cs (2)
279
if(sourceFrom != null && sourceFrom.CriticalHandle != IntPtr.Zero && sourceFrom.
CompositionTarget
!= null &&
280
sourceTo != null && sourceTo.CriticalHandle != IntPtr.Zero && sourceTo.
CompositionTarget
!= null)
System\Windows\Input\MouseDevice.cs (1)
2079
if (source != null && source.
CompositionTarget
!= null && !source.IsHandleNull)
System\Windows\Input\Stylus\Common\StylusLogic.cs (6)
414
if (hwndSource?.
CompositionTarget
!= null)
417
if (!_transformToDeviceMatrices.ContainsKey(hwndSource.
CompositionTarget
.CurrentDpiScale))
419
_transformToDeviceMatrices[hwndSource.
CompositionTarget
.CurrentDpiScale] = hwndSource.
CompositionTarget
.TransformToDevice;
420
Debug.Assert(_transformToDeviceMatrices[hwndSource.
CompositionTarget
.CurrentDpiScale].HasInverse);
423
toDevice = _transformToDeviceMatrices[hwndSource.
CompositionTarget
.CurrentDpiScale];
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
71
Matrix matrix = (_inputSource as HwndSource)?.
CompositionTarget
?.TransformToDevice ?? Matrix.Identity;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
2929
if (source != null && source.
CompositionTarget
!= null && !source.IsHandleNull)
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1530
if (penContextsOfPoints?.InputSource?.
CompositionTarget
!= null)
System\Windows\InterOp\HwndMouseInputProvider.cs (2)
870
if(_source != null && !_source.IsDisposed && _source.
CompositionTarget
!= null)
871
dispatcherHashCode = _source.
CompositionTarget
.Dispatcher.GetHashCode();
System\Windows\InterOp\HwndSource.cs (2)
725
return
CompositionTarget
;
1143
HwndTarget hwndTarget =
CompositionTarget
; // checks for disposed
System\Windows\InterOp\HwndStylusInputProvider.cs (2)
158
(_source.
CompositionTarget
!= null ? _source.
CompositionTarget
.Dispatcher.GetHashCode() : 0),
PresentationFramework (17)
System\Windows\Appearance\WindowBackdropManager.cs (4)
100
if (windowSource.
CompositionTarget
!= null)
103
windowSource.
CompositionTarget
.BackgroundColor = Colors.Transparent;
115
if (windowSource?.Handle != IntPtr.Zero && windowSource.
CompositionTarget
!= null)
117
windowSource.
CompositionTarget
.BackgroundColor = SystemColors.WindowColor;
System\Windows\Controls\Primitives\Popup.cs (5)
3045
CompositionTarget ct = hwndSource.
CompositionTarget
;
3114
CompositionTarget ct = _window.
CompositionTarget
;
3133
CompositionTarget ct = hwndSource.
CompositionTarget
;
3145
CompositionTarget ct = _window.
CompositionTarget
;
3368
HwndTarget hwndTarget = (HwndTarget)newWindow.
CompositionTarget
;
System\Windows\Documents\ImmComposition.cs (2)
626
compositionTarget = _source.
CompositionTarget
;
759
compositionTarget = _source.
CompositionTarget
;
System\Windows\Shell\WindowChromeWorker.cs (3)
958
_hwndSource.
CompositionTarget
.BackgroundColor = SystemColors.WindowColor;
968
_hwndSource.
CompositionTarget
.BackgroundColor = Colors.Transparent;
1154
_hwndSource.
CompositionTarget
.BackgroundColor = SystemColors.WindowColor;
System\Windows\Window.cs (3)
7547
HwndTarget compositionTarget = _sourceWindow.
CompositionTarget
;
7619
pt = _sourceWindow.
CompositionTarget
.TransformFromDevice.Transform(pt);
7642
pt = _sourceWindow.
CompositionTarget
.TransformFromDevice.Transform(pt);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2933
CompositionTarget ct = hwndSource.
CompositionTarget
;