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