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)
2105
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)
2943
if (source != null && source.
CompositionTarget
!= null && !source.IsHandleNull)
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1533
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)
719
return
CompositionTarget
;
1126
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)
3050
CompositionTarget ct = hwndSource.
CompositionTarget
;
3119
CompositionTarget ct = _window.
CompositionTarget
;
3138
CompositionTarget ct = hwndSource.
CompositionTarget
;
3150
CompositionTarget ct = _window.
CompositionTarget
;
3371
HwndTarget hwndTarget = (HwndTarget)newWindow.
CompositionTarget
;
System\Windows\Documents\ImmComposition.cs (2)
603
compositionTarget = _source.
CompositionTarget
;
736
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)
2938
CompositionTarget ct = hwndSource.
CompositionTarget
;