40 references to CompositionTarget
PresentationCore (28)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (5)
45
if (throwOnError || (presentationSource != null && presentationSource.
CompositionTarget
!= null && !presentationSource.
CompositionTarget
.IsDisposed))
48
point = presentationSource.
CompositionTarget
.TransformFromDevice.Transform(point);
76
point = presentationSource.
CompositionTarget
.TransformToDevice.Transform(point);
250
CompositionTarget target = presentationSource.
CompositionTarget
;
System\Windows\Input\MouseDevice.cs (3)
894
if (activeSource != null && activeSource.
CompositionTarget
!= null && !activeSource.
CompositionTarget
.IsDisposed)
2099
if (sourceHit != null && sourceHit.Dispatcher == inputSource.
CompositionTarget
.Dispatcher)
System\Windows\Input\Stylus\Common\RawStylusInput.cs (1)
82
group.Children.Add(new MatrixTransform(_report.InputSource.
CompositionTarget
.TransformFromDevice));
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
618
if (InRange && _inputSource?.
CompositionTarget
is { } target && !target.IsDisposed)
1142
Matrix toDevice = _inputSource.
CompositionTarget
.TransformToDevice;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (4)
178
ptTablet *= inputReport.InputSource.
CompositionTarget
.TransformFromDevice; // change to measured units now.
596
(source.
CompositionTarget
!= null) &&
597
!source.
CompositionTarget
.IsDisposed)
602
ptClient = source.
CompositionTarget
.TransformToDevice.Transform(ptClient);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (5)
447
_deferredMouseMove.InputSource.
CompositionTarget
!= null &&
448
!_deferredMouseMove.InputSource.
CompositionTarget
.IsDisposed)
1899
(source.
CompositionTarget
!= null) &&
1900
!source.
CompositionTarget
.IsDisposed)
1905
ptClient = source.
CompositionTarget
.TransformToDevice.Transform(ptClient);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (5)
325
if (InRange && _inputSource?.
CompositionTarget
is { } target && !target.IsDisposed)
1504
if (inputSource.
CompositionTarget
== null || inputSource.
CompositionTarget
.IsDisposed ||
1516
capturedSource.
CompositionTarget
!= null &&
1517
!capturedSource.
CompositionTarget
.IsDisposed)
System\Windows\Input\TouchDevice.cs (2)
755
_activeSource.
CompositionTarget
!= null &&
756
!_activeSource.
CompositionTarget
.IsDisposed)
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
1241
CompositionTarget ct = source.
CompositionTarget
;
PresentationFramework (11)
System\Windows\Controls\PopupControlService.cs (1)
887
CompositionTarget target = presentationSource.
CompositionTarget
;
System\windows\Documents\CaretElement.cs (2)
984
double deviceHeight = source.
CompositionTarget
.TransformToDevice.Transform(new Point(0, _height)).Y;
1080
win32CaretPoint = source.
CompositionTarget
.TransformToDevice.Transform(win32CaretPoint);
System\windows\Documents\TextEditorContextMenu.cs (1)
314
CompositionTarget compositionTarget = source.
CompositionTarget
;
System\Windows\Documents\TextStore.cs (4)
952
compositionTarget = source.
CompositionTarget
;
1058
compositionTarget = source.
CompositionTarget
;
1165
compositionTarget = source.
CompositionTarget
;
2640
compositionTarget = source.
CompositionTarget
;
System\Windows\Interop\HwndHost.cs (3)
349
vt = source.
CompositionTarget
;
1073
ptUpperLeft = source.
CompositionTarget
.TransformFromDevice.Transform(ptUpperLeft);
1074
ptLowerRight = source.
CompositionTarget
.TransformFromDevice.Transform(ptLowerRight);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
293
CompositionTarget compositionTarget = PresentationSource.FromVisual(rw).
CompositionTarget
;