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