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