40 references to CompositionTarget
PresentationCore (28)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (5)
41
if (throwOnError || (presentationSource != null && presentationSource.
CompositionTarget
!= null && !presentationSource.
CompositionTarget
.IsDisposed))
44
point = presentationSource.
CompositionTarget
.TransformFromDevice.Transform(point);
72
point = presentationSource.
CompositionTarget
.TransformToDevice.Transform(point);
246
CompositionTarget target = presentationSource.
CompositionTarget
;
System\Windows\Input\MouseDevice.cs (3)
879
if (activeSource != null && activeSource.
CompositionTarget
!= null && !activeSource.
CompositionTarget
.IsDisposed)
2121
if (sourceHit != null && sourceHit.Dispatcher == inputSource.
CompositionTarget
.Dispatcher)
System\Windows\Input\Stylus\Common\RawStylusInput.cs (1)
74
group.Children.Add(new MatrixTransform(_report.InputSource.
CompositionTarget
.TransformFromDevice));
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
609
if (InRange && _inputSource?.
CompositionTarget
is { } target && !target.IsDisposed)
1139
Matrix toDevice = _inputSource.
CompositionTarget
.TransformToDevice;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (4)
165
ptTablet *= inputReport.InputSource.
CompositionTarget
.TransformFromDevice; // change to measured units now.
583
(source.
CompositionTarget
!= null) &&
584
!source.
CompositionTarget
.IsDisposed)
589
ptClient = source.
CompositionTarget
.TransformToDevice.Transform(ptClient);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (5)
440
_deferredMouseMove.InputSource.
CompositionTarget
!= null &&
441
!_deferredMouseMove.InputSource.
CompositionTarget
.IsDisposed)
1902
(source.
CompositionTarget
!= null) &&
1903
!source.
CompositionTarget
.IsDisposed)
1908
ptClient = source.
CompositionTarget
.TransformToDevice.Transform(ptClient);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (5)
318
if (InRange && _inputSource?.
CompositionTarget
is { } target && !target.IsDisposed)
1503
if (inputSource.
CompositionTarget
== null || inputSource.
CompositionTarget
.IsDisposed ||
1515
capturedSource.
CompositionTarget
!= null &&
1516
!capturedSource.
CompositionTarget
.IsDisposed)
System\Windows\Input\TouchDevice.cs (2)
742
_activeSource.
CompositionTarget
!= null &&
743
!_activeSource.
CompositionTarget
.IsDisposed)
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
1233
CompositionTarget ct = source.
CompositionTarget
;
PresentationFramework (11)
System\Windows\Controls\PopupControlService.cs (1)
883
CompositionTarget target = presentationSource.
CompositionTarget
;
System\windows\Documents\CaretElement.cs (2)
977
double deviceHeight = source.
CompositionTarget
.TransformToDevice.Transform(new Point(0, _height)).Y;
1073
win32CaretPoint = source.
CompositionTarget
.TransformToDevice.Transform(win32CaretPoint);
System\windows\Documents\TextEditorContextMenu.cs (1)
311
CompositionTarget compositionTarget = source.
CompositionTarget
;
System\Windows\Documents\TextStore.cs (4)
940
compositionTarget = source.
CompositionTarget
;
1043
compositionTarget = source.
CompositionTarget
;
1150
compositionTarget = source.
CompositionTarget
;
2622
compositionTarget = source.
CompositionTarget
;
System\Windows\Interop\HwndHost.cs (3)
343
vt = source.
CompositionTarget
;
1066
ptUpperLeft = source.
CompositionTarget
.TransformFromDevice.Transform(ptUpperLeft);
1067
ptLowerRight = source.
CompositionTarget
.TransformFromDevice.Transform(ptLowerRight);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
287
CompositionTarget compositionTarget = PresentationSource.FromVisual(rw).
CompositionTarget
;