36 references to CompositionTarget
PresentationCore (18)
System\Windows\Input\InputElement.cs (2)
275
if(sourceFrom != null && sourceFrom.Handle != IntPtr.Zero && sourceFrom.
CompositionTarget
!= null &&
276
sourceTo != null && sourceTo.Handle != IntPtr.Zero && sourceTo.
CompositionTarget
!= null)
System\Windows\Input\MouseDevice.cs (1)
2070
if (source != null && source.
CompositionTarget
!= null && !source.IsHandleNull)
System\Windows\Input\Stylus\Common\StylusLogic.cs (6)
404
if (hwndSource?.
CompositionTarget
!= null)
407
if (!_transformToDeviceMatrices.ContainsKey(hwndSource.
CompositionTarget
.CurrentDpiScale))
409
_transformToDeviceMatrices[hwndSource.
CompositionTarget
.CurrentDpiScale] = hwndSource.
CompositionTarget
.TransformToDevice;
410
Debug.Assert(_transformToDeviceMatrices[hwndSource.
CompositionTarget
.CurrentDpiScale].HasInverse);
413
toDevice = _transformToDeviceMatrices[hwndSource.
CompositionTarget
.CurrentDpiScale];
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
59
Matrix matrix = (_inputSource as HwndSource)?.
CompositionTarget
?.TransformToDevice ?? Matrix.Identity;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
2920
if (source != null && source.
CompositionTarget
!= null && !source.IsHandleNull)
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1527
if (penContextsOfPoints?.InputSource?.
CompositionTarget
!= null)
System\Windows\InterOp\HwndMouseInputProvider.cs (2)
866
if(_source != null && !_source.IsDisposed && _source.
CompositionTarget
!= null)
867
dispatcherHashCode = _source.
CompositionTarget
.Dispatcher.GetHashCode();
System\Windows\InterOp\HwndSource.cs (2)
713
return
CompositionTarget
;
1120
HwndTarget hwndTarget =
CompositionTarget
; // checks for disposed
System\Windows\InterOp\HwndStylusInputProvider.cs (2)
151
(_source.
CompositionTarget
!= null ? _source.
CompositionTarget
.Dispatcher.GetHashCode() : 0),
PresentationFramework (17)
System\Windows\Appearance\WindowBackdropManager.cs (4)
99
if (windowSource.
CompositionTarget
!= null)
102
windowSource.
CompositionTarget
.BackgroundColor = Colors.Transparent;
114
if (windowSource?.Handle != IntPtr.Zero && windowSource.
CompositionTarget
!= null)
116
windowSource.
CompositionTarget
.BackgroundColor = SystemColors.WindowColor;
System\Windows\Controls\Primitives\Popup.cs (5)
3038
CompositionTarget ct = hwndSource.
CompositionTarget
;
3107
CompositionTarget ct = _window.
CompositionTarget
;
3126
CompositionTarget ct = hwndSource.
CompositionTarget
;
3138
CompositionTarget ct = _window.
CompositionTarget
;
3361
HwndTarget hwndTarget = (HwndTarget)newWindow.
CompositionTarget
;
System\Windows\Documents\ImmComposition.cs (2)
618
compositionTarget = _source.
CompositionTarget
;
751
compositionTarget = _source.
CompositionTarget
;
System\Windows\Shell\WindowChromeWorker.cs (3)
953
_hwndSource.
CompositionTarget
.BackgroundColor = SystemColors.WindowColor;
963
_hwndSource.
CompositionTarget
.BackgroundColor = Colors.Transparent;
1149
_hwndSource.
CompositionTarget
.BackgroundColor = SystemColors.WindowColor;
System\Windows\Window.cs (3)
7534
HwndTarget compositionTarget = _sourceWindow.
CompositionTarget
;
7606
pt = _sourceWindow.
CompositionTarget
.TransformFromDevice.Transform(pt);
7629
pt = _sourceWindow.
CompositionTarget
.TransformFromDevice.Transform(pt);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2928
CompositionTarget ct = hwndSource.
CompositionTarget
;