40 references to CompositionTarget
PresentationCore (28)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (5)
42
if (throwOnError || (presentationSource != null && presentationSource.
CompositionTarget
!= null && !presentationSource.
CompositionTarget
.IsDisposed))
45
point = presentationSource.
CompositionTarget
.TransformFromDevice.Transform(point);
73
point = presentationSource.
CompositionTarget
.TransformToDevice.Transform(point);
247
CompositionTarget target = presentationSource.
CompositionTarget
;
System\Windows\Input\MouseDevice.cs (3)
885
if (activeSource != null && activeSource.
CompositionTarget
!= null && !activeSource.
CompositionTarget
.IsDisposed)
2090
if (sourceHit != null && sourceHit.Dispatcher == inputSource.
CompositionTarget
.Dispatcher)
System\Windows\Input\Stylus\Common\RawStylusInput.cs (1)
75
group.Children.Add(new MatrixTransform(_report.InputSource.
CompositionTarget
.TransformFromDevice));
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
610
if (InRange && _inputSource?.
CompositionTarget
is { } target && !target.IsDisposed)
1134
Matrix toDevice = _inputSource.
CompositionTarget
.TransformToDevice;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (4)
166
ptTablet *= inputReport.InputSource.
CompositionTarget
.TransformFromDevice; // change to measured units now.
584
(source.
CompositionTarget
!= null) &&
585
!source.
CompositionTarget
.IsDisposed)
590
ptClient = source.
CompositionTarget
.TransformToDevice.Transform(ptClient);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (5)
438
_deferredMouseMove.InputSource.
CompositionTarget
!= null &&
439
!_deferredMouseMove.InputSource.
CompositionTarget
.IsDisposed)
1890
(source.
CompositionTarget
!= null) &&
1891
!source.
CompositionTarget
.IsDisposed)
1896
ptClient = source.
CompositionTarget
.TransformToDevice.Transform(ptClient);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (5)
322
if (InRange && _inputSource?.
CompositionTarget
is { } target && !target.IsDisposed)
1501
if (inputSource.
CompositionTarget
== null || inputSource.
CompositionTarget
.IsDisposed ||
1513
capturedSource.
CompositionTarget
!= null &&
1514
!capturedSource.
CompositionTarget
.IsDisposed)
System\Windows\Input\TouchDevice.cs (2)
743
_activeSource.
CompositionTarget
!= null &&
744
!_activeSource.
CompositionTarget
.IsDisposed)
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
1237
CompositionTarget ct = source.
CompositionTarget
;
PresentationFramework (11)
System\Windows\Controls\PopupControlService.cs (1)
877
CompositionTarget target = presentationSource.
CompositionTarget
;
System\windows\Documents\CaretElement.cs (2)
981
double deviceHeight = source.
CompositionTarget
.TransformToDevice.Transform(new Point(0, _height)).Y;
1077
win32CaretPoint = source.
CompositionTarget
.TransformToDevice.Transform(win32CaretPoint);
System\windows\Documents\TextEditorContextMenu.cs (1)
312
CompositionTarget compositionTarget = source.
CompositionTarget
;
System\Windows\Documents\TextStore.cs (4)
941
compositionTarget = source.
CompositionTarget
;
1047
compositionTarget = source.
CompositionTarget
;
1154
compositionTarget = source.
CompositionTarget
;
2629
compositionTarget = source.
CompositionTarget
;
System\Windows\Interop\HwndHost.cs (3)
347
vt = source.
CompositionTarget
;
1071
ptUpperLeft = source.
CompositionTarget
.TransformFromDevice.Transform(ptUpperLeft);
1072
ptLowerRight = source.
CompositionTarget
.TransformFromDevice.Transform(ptLowerRight);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
288
CompositionTarget compositionTarget = PresentationSource.FromVisual(rw).
CompositionTarget
;